A successful #JSM2025 presentation! Feels so good to nerd out about ggplot in public again 😄
| github | https://github.com/perlatex |
A successful #JSM2025 presentation! Feels so good to nerd out about ggplot in public again 😄
Generative calligraphy with random walks, smoothing splines and aesthetic mapping in R.
See also: https://mastodon.social/@safest_integer/114329996541737881
```
library(tidyverse)
n = 20
x = cumsum(rnorm(n))
y = runif(n)
xx = predict(smooth.spline(x, spar=.005), seq(1, n, .01))$y
yy = predict(smooth.spline(y, spar=.005), seq(1, n, .01))$y
ggplot(tibble(x=xx,y=yy)) +
geom_path(aes(x=x, y=y, lwd=-c(0,diff(y))), show.legend=FALSE) +
theme_void()
```