#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: https://t.ly/ouLN0

#Day16 #Negative #dataviz #DataVisualization #Ecology #LifeHistory #Metabolism #Longevity #AnAge #ggplot2 #RStats #Science

While Hadley Wickham created an amazing #Rstats #dataviz ecosystem in #ggplot2, I've found it a bit challenging to use. Enter #ggpubr (https://rpkgs.datanovia.com/ggpubr/) created by Dr. Alboukadel Kassambara, who's extended #ggplot and made it very easy to create publication quality figures. #tidyverse #ScienceMastodon
ggplot2 Based Publication Ready Plots

The ggplot2 package is excellent and flexible for elegant data visualization in R. However the default generated plots requires some formatting before we can send them for publication. Furthermore, to customize a ggplot, the syntax is opaque and this raises the level of difficulty for researchers with no advanced R programming skills. ggpubr provides some easy-to-use functions for creating and customizing ggplot2- based publication ready plots.

Found a workaround on Twitter thanks to @gsapijaszko that solves this from within #rstats. If I want to produce a #bibtex file for #terra and #ggpubr, the code would be something like:
packages <- c("terra", "ggpubr")
knitr::write_bib(packages, file = "../../packages.bib")
I always try to cite #rstats packages in my publications (and so should you). Sometimes it's easy because there's a publication directly associated with the package. But most of the time, it needs to be cited by itself. In this case, it would be great if the CRAN page of the package has a bibtex or ris file that can be easily loaded into citation software instead of manual entry. A good example is the great #ggpubr package: https://cran.r-project.org/web/packages/ggpubr/index.html
#ScienceMastodon #foss #opensource #rstat
ggpubr: 'ggplot2' Based Publication Ready Plots

The 'ggplot2' package is excellent and flexible for elegant data visualization in R. However the default generated plots requires some formatting before we can send them for publication. Furthermore, to customize a 'ggplot', the syntax is opaque and this raises the level of difficulty for researchers with no advanced R programming skills. 'ggpubr' provides some easy-to-use functions for creating and customizing 'ggplot2'- based publication ready plots.