Cracking open ggplot internals with {ggtrace}
summary
Package ggtrace exposes ggplot2 internals so users can snapshot and modify the layer data frames at concrete points in the pipeline. It provides functions like ggtrace_inspect_args() and ggtrace_inspect_return() to capture the Before Stat, After Stat, Before Geom and After Scale states, lets code insert a stage() mapping to keep y present for stat_boxplot and geom_label, and demonstrates a working solution that debugs and adds a label for the upper whisker of the second box plot.
AI-written summary · about
chapters (9)
- 0:00Start
- 4:07ggplot internals as data wrangling
- 4:55Layers as dataframes
- 10:21Walkthrough with a barplot
- 12:26After Stat
- 13:19Before Geom
- 17:31Multiple mappings with stage()
- 17:57ggplot internals for users
- 18:40Capture workflow
related talks
19mCracking open ggplot internals with {ggtrace}
01h 01m50 ways to show your data
18mBe Kind, Rewind
34mVisualising Multi Dimensional Data
16mWho are 'the ggplot2 extenders' and how to become one
30mFrom plotting to chart porn - Creating slick charts with Matplotlib
29mPeering into the black box: tips for visualizing your program's behavior
01h 26mTurning DataFrames into Pretty Pictures with Plotnine
