Main river basins of Germany.
#rayshader adventures, an #rstats tale
Main river basins of Germany.
#rayshader adventures, an #rstats tale
#Rstats / R programming language picks of the day:
➡️ @R_Foundation - Non-profit org founded by R core team
➡️ @useR_conf - Annual R conference
➡️ @R_Contributors - R Contribution Working Group
➡️ @R_Forwards - Promoting diversity in R community
➡️ R-Ladies accounts, promoting gender diversity in R community:
@RLadiesGlobal - Global
@RLadiesGaborone - Gaborone, Botswana
@rladies_paris - Paris, France
@rladies_cologne - Cologne, Germany
@rladiesrome - Rome, Italy
🧵 1/3
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