theme_stackplot {ggstackplot} | R Documentation |
Recommended base theme for stacked gg plots
Description
Returns a basic ggplot2 theme that extends ggplot2::theme_bw()
with a transparent plot background to make sure overlapping plots do not cover each other up.
Usage
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
)
[Package ggstackplot version 0.4.1 Index]