ggplot2 Layer Explorer

Toggle layers on and off; each colored block in the code is one layer of the plot

ggplot2 data: palmerpenguins::penguins n ≈ 60 simulated obs.
Build Your Plot
Active layers
Layer order (drawn bottom → top):
Where does aes() live?
aes() tells ggplot which data columns control what you see (x-axis, y-axis, color…)
Color
Transparency (alpha)
Appearance
Pre-built themes
Customize with theme()
Stack a theme() call on top of any pre-built theme, or use it alone to build your own theme from scratch.
Gridlines
Tick marks
Axis label text
Axis titles
Plot Preview
What just changed:
ggplot2 Code (paste into RStudio to run)
Code line colors
ggplot() base geom_violin() geom_point() stat_summary() theme labels