Intro Thoughts
Status Quo
library(tidyverse)
gapminder_2002 <- gapminder::gapminder |>
filter(year == 2002)
update_geom_defaults("point", aes(shape = 21, size = 3, color = "white", fill = "grey"))
'
gapminder_2002 |>
ggplot() +
aes(gdpPercap/1000,
lifeExp) +
geom_point(layout = "fixed") + #<<
geom_point(fill = "magenta4") +
facet_wrap(~continent)' |>
ggram::ggram(title = "Fond of reference shadows in facets? A snap with ggplot2 v4.0's new 'layout' arg! 🫰",
caption = "Note, geom updates prior to plotting: 'update_geom_defaults( \"point\", aes(shape = 21, size = 3, color = \"white\", fill = \"grey\"))'",
subtitle = "And 'fixed_cols' and 'fixed_rows' are options with facet_grid()! 🚀🔥", code = _)
## Warning: Removed 10 rows containing missing values or values outside the scale range
## (`geom_hline()`).

Experiment