~/talk

Cracking open ggplot internals with {ggtrace}

name:June Choe
links:none on file
slides:none on file

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

  1. 0:00Start
  2. 4:07ggplot internals as data wrangling
  3. 4:55Layers as dataframes
  4. 10:21Walkthrough with a barplot
  5. 12:26After Stat
  6. 13:19Before Geom
  7. 17:31Multiple mappings with stage()
  8. 17:57ggplot internals for users
  9. 18:40Capture workflow
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.