ggplot2 Layer Explorer

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

data: palmerpenguins::penguins n ≈ 60 simulated obs.
Build Your Plot
Active layers
Layer order (drawn bottom → top):
Color
Transparency (alpha)
Where does aes() live?
aes() tells ggplot which data columns control what you see (x-axis, y-axis, color…)
Appearance
Theme
Plot Preview
ggplot2 Code — paste into RStudio to run
What just changed:
Code line colors
ggplot() base geom_violin() geom_point() stat_summary() theme labels