Extending your ability to extend ggplot2
summary
Shows how to add a new stat/geom by subclassing ggplot2’s ggproto classes, implementing setup_data and compute_group to turn (x0,y0,r) into polygon points, and returning grid grobs so it renders. Demonstrates a working geom_circle built from an R function that precomputes periphery points, explains when to vectorize at compute_panel for speed, and confirms the extension honors facets and existing ggplot2 semantics.
AI-written summary · about
chapters (6)
related talks
06mInsights in 5-D! (Using magic small-multiples layouts)
10mCivic Hacking & Urban Informatics: Mapping Data with GeoPandas
08minterviewed at – Hadley Wickham
29mGrammars of Data: lessons from ~20 years of the tidyverse
25mEverything but maps with spatial tools
51mProgramming in the Tidyverse
05mImplications of R Syntax in Intro Stats
36mThe earth is no longer flat - introducing support for spherical geometries in Spherely and GeoPandas
