Main river basins of Germany.
#rayshader adventures, an #rstats tale
Main river basins of Germany.
#rayshader adventures, an #rstats tale
🎄 ANNOUNCEMENT: R Package Development Advent Calendar 2025! 🎄
Starting December 1st, I'm launching a 25-day journey through modern R package development. But this isn't just another tips series - here's why you should follow along 🧵
The Problem: R package development can feel overwhelming. Between documentation, testing, CI/CD, and CRAN submission, there are dozens of tools to learn.
Here is some R code to make the world a bit less rough.
```
library(tidyverse)
library(rnaturalearth)
library(sf)
smoo = function(x,y,s)
predict(smooth.spline(y,spar=s),x)$y
d = ne_coastline(110) |>
st_coordinates() |>
as_tibble() |>
group_by(L1) |>
filter(n() > 4)
for (s in seq(0,1,.01)) {
p = d |> mutate(
i = 1:n(),
X = smoo(i,X,s),
Y = smoo(i,Y,s)) |>
ggplot() +
geom_path(aes(x=X,y=Y,group=L1)) +
theme_void()
show(p)
}
```
#rstats #spatial #maps #gis
#TidyTuesday Libros en español del Proyecto Gutenberg. @gutenberg_org
Script: https://vhgauto.github.io/tidytuesday/2025/semana_22.html
I'll be at (my first!) UseR! this week in Durham, NC. If you're there as well, come say hi! #rstats