How do you create custom geoms in ggplot2? | Gina Reynolds | Data Science Lab @PositPBC
How do you create custom geoms in ggplot2? | Gina Reynolds | Data Science Lab  @PositPBC
Uploaded October 2026 | Updated November 2026, 10 hours ago
You can define a ggproto class object! Just like you can create an R package with custom functions, you can create an R package with custom geoms! The starter recipes in this lab will help you get started on your own custom ggplot2-compatible functions.

The Data Science Lab is a live weekly call. Register at pos.it/dslab! Discord invites go out each week on lives calls. We'd love to have you! It's is an open, messy space for learning and asking questions. Think of it like pair coding with a friend or two. Learn something new, and share what you know to help others grow.

On this call, Gina Reynolds talks about ggplot2 extension generally, and works through a 'layer' extension with Isabella - that is, a user-facing functions with the stat_ or geom_ prefixes.

Hosting crew from Posit: Libby Heeren, Isabella Velasquez

Gina Reynolds's socials and urls:
ggplot2 Extenders website: ggplot2-extenders.github.io/ggplot-extension-club
Gina's Bluesky: https://bsky.app/profile/ginareynolds.bsky.social
Gina's GitHub: github.com/evamaerey
Gina's LinkedIn: linkedin.com/in/evangeline-reynolds

Resources mentioned in video and/or the chat:
geofacet package: hafen.github.io/geofacet
Andrew Heiss on ggplot and geographic maps: andrewheiss.com/blog/2025/02/19/ggplot-histogram-legend
Slidecrafting book (Quarto reveal.js presentations): slidecrafting-book.com
Slidecrafting Workshop with Emil Hvitfeldt: https://pos.it/slide-wrkshp
ggplot2 extenders group join form: bit.ly/join-gg-extenders
ggplot2 extenders website: ggplot2-extenders.github.io/ggplot-extension-club
ggplot2 easy geom recipes: evamaerey.github.io/easy-geom-recipes
geom_means recipe: evamaerey.github.io/easy-geom-recipes/recipe1means.html
Easy geom recipes evaluation report: evamaerey.github.io/evamaerey/report2_easy_geom_recipes.pdf
Plotnine easy geom recipes: has2k1.github.io/easy-geom-recipes
Getting started with geomtextpath (Libby's blog post): rfortherestofus.com/2024/01/get-started-geomtextpath
cli package GitHub: github.com/r-lib/cli
beepr package GitHub: github.com/rasmusab/beepr
ggplot2 stat_summary() documentation: ggplot2.tidyverse.org/reference/stat_summary.html
ggh4x package: teunbrand.github.io/ggh4x
legendry package: teunbrand.github.io/legendry
ThemePark package GitHub: github.com/MatthewBJane/ThemePark
ggfittext package: wilkox.org/ggfittext
ggfx package: ggfx.data-imaginist.com
ggridges package introduction: wilkelab.org/ggridges/articles/introduction.html
ggbump package GitHub: github.com/davidsjoberg/ggbump
geomtextpath package: allancameron.github.io/geomtextpath
ggpubr package: rpkgs.datanovia.com/ggpubr
plotnine: plotnine.org
How do you create custom geoms in ggplot2? | Gina Reynolds | Data Science LabPreview Parquet files easily in the Positron IDEWhat even is dbt? An Analytics engineer explains | Laurie Merrell & Michael Chow | Data Science LabHackathons for education, not competition | Allissa Dillman | Data Science HangoutHow do you get people to show up to things? | Data Community Building Q&A | Data Science HangoutHow can AI & ML work together to solve problems? | Amanda Perez & Romina Mir | Data Science HangoutThe Bus Has to Jump 50 Feet β€” with Greg SwinehartWhat is Narwhals? DataFrame compatibility in Python | Cameron Riddell | Data Science LabHow to Make a Data Visualization in R: A Live TidyTuesday WorkflowAI Governance in Workbench: Workflow DemoWake up babe, new IDE for Jupyter notebooks just droppedData dictionaries, parquet, & Claude | Hadley Wickham | Data Science Lab
Posit PBC |

How do you create custom geoms in ggplot2? | Gina Reynolds | Data Science Lab

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER