An Introduction to Writing Your Own ggplot2 Geoms

If you use ggplot2, you are probably used to creating plots with geom_line() and geom_point() . You may also have ventured into to the broader ggplot2 ecosystem to use geoms like geom_density_ridges() from ggridges or geom_signif() from ggsignif . But have you ever wondered how these extensions were created? Where did the authors figure out how to create a new geom? And, if the plot of your dreams…