flipboard.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Welcome to Flipboard on Mastodon. A place for our community of curators and enthusiasts to inform and inspire each other. If you'd like to join please request an invitation via the sign-up page.

Administered by:

Server stats:

1.2K
active users

#rstats

137 posts123 participants12 posts today

I was working on #RStats today with a postgrad student, Stacey, and we needed a colour palette for a graph. Picking a nice set of colours, instead of "red", "blue", "green", etc. can make a graph sparkle.

We used the MoMAColors palette package by BlakeRMills. It takes colours from some excellent art works from the Museum of Modern Art in New York. Thanks to Blake for making this.

github.com/BlakeRMills/MoMACol

#30DayChartChallenge Día 16: Negative Relationship FOUND! 📉🐍🐦🐢🐟

¡Lo conseguimos! Tras ajustar por masa corporal, la relación entre Tasa Metabólica Específica (W/kg) y Longevidad Máxima (años) en ~530 especies animales (AnAge DB, outliers quitados) SÍ es negativa (Pearson ρ ≈ -0.42, p < 2.2e-16). #RelationshipsWeek #Animals

El gráfico log-log muestra la tendencia: mayor intensidad metabólica por kilo se asocia con vidas más cortas. ¡Apoya la idea del "ritmo de vida"! 🔥➡️⏳ Colores por Clase Taxonómica.

Un recordatorio de la importancia de normalizar variables y limpiar datos para ver la señal correcta. ¡Ciencia en acción!

🛠 #rstats #ggplot2 #ggpubr | Data: AnAge | Theme: #theme_week3_animals
📂 Código/Viz: t.ly/ouLN0

```
library(tidyverse)
z = function(n) {
bb = function(i) {
x = y = 0
for (k in 0:(n - 1)) {
x = x + ((floor(i/2^(2*k))) %% 2) * 2^k
y = y + ((floor(i/2^(2*k+1))) %% 2) * 2^k
}
c(x, y)
}
as.data.frame(t(sapply(0:(4^n - 1), bb)))
}
ggplot(z(6)) +
geom_path(aes(x=V1, y=V2, col=sin(V1/4)+cos(V2/4)), show.legend=F) +
scale_colour_gradient(low='orange', high='blue') +
theme_void()
```
en.wikipedia.org/wiki/Z-order_
#rstats #generativeart #tilingtuesday #rtistry

Too much frustration with trying to implement some quarto this week. Settling for just the original perfectly functional #rstats script and some plots saved as high quality images or append into a pdf was all it needed. Sometimes I’m all aboard the quarto train and sometimes I feel it’s just too much friction…

Anyone in #RStats ever wrap a static library and get it on the CRAN without problems? I've successfully built some packages (that require cmake), have installed the static library to inst/lib/ARCH, and then have successfully linked the library in another package, but it's unclear how blessed this is by the CRAN.

Below are the relevant sections from Writing R Extensions:
cran.r-project.org/doc/manuals

WRE, Unix-alikes:
cran.r-project.org/doc/manuals

WRE, Windows:
cran.r-project.org/doc/manuals

cran.r-project.orgWriting R ExtensionsWriting R Extensions

I need input from #rstats users who use the rnaturalearth package.

Currently, the ne_download() function always save the requested data on disk whatever the load argument is set to TRUE or FALSE.

I am currently thinking to change this behavior to only save the data on disk when load = FALSE. This would be a breaking change, but I think it would be more consistent with the argument name and save unnecessary disk operations.

What do you think?

📣 rOpenSci Champions Program Application Clinic coming up in 45 minutes! | Clinica de Aplicación para el Programa de Campeon(e|a)s de rOpenSci en 45 minutos!

Yanina Bellini Saibene will be there to answer questions and help you with your application | Yani estara disponible durante el evento para contestar preguntas y ayudarte con tu aplicacion.

The event will have Spanish as first language | El evento tendra al castellano como idioma principal.

Info to join | Info para sumarte: ropensci.org/events/clinica-ch

ropensci.orgClinica de Aplicación para el Programa de Campeon(e|a)s de rOpenSciEspacio para preguntas sobre el programa de Campeon(e|a)s de rOpenSci y para trabajar en tu aplicación para ser parte del programa.