-
Couldn't load subscription status.
- Fork 2.1k
Open
Labels
Description
The default key glyph for geom_area() is a polygon. My main gripe with this is that this doesn't reflect the outline.type = "upper" setting of the geom.
library(ggplot2)
ggplot(economics, aes(date, unemploy, fill = "Unemployment")) +
geom_area(alpha = 0.5, colour = "black")An alternative one might entertain is to allow a fill underneath the line in the timeseries key.
ggplot(economics, aes(date, unemploy, fill = "Unemployment")) +
geom_area(alpha = 0.5, colour = "black", key_glyph = draw_key_timeseries)Created on 2025-09-25 with reprex v2.1.1

