A minimal legend style with white background, small text, and reduced spacing. Useful for plots where the legend should not dominate the layout.
See also
Other ggplot2 themes:
theme_blank(),
theme_km,
theme_my(),
theme_rcs,
theme_sc()
Examples
library(ggplot2)
ggplot(iris, aes(Sepal.Length, Sepal.Width, color = Species)) +
geom_point() +
theme_legend1()
