Recommended base theme for stacked gg plots

theme_stackplot()

Value

ggplot2::theme() object

Examples

library(ggplot2)
template <- ggplot() + geom_line() + theme_stackplot()

ggstackplot(
  data = mtcars,
  x = mpg, y = c(wt, qsec, drat),
  color = c("#E41A1C", "#377EB8", "#4DAF4A"),
  template = template
)