View source: R/alignpatch-align_plots.R
layout_annotation | R Documentation |
modify the theme of the layout
layout_annotation(theme = waiver(), ...)
theme |
A |
... |
These dots are for future extensions and must be empty. |
guides
, panel.border
, and background
will always be used even for the
nested alignpatches
object.
title
, subtitle
, caption
, and margins
will be added for the
top-level alignpatches
object only.
p1 <- ggplot(mtcars) +
geom_point(aes(mpg, disp))
p2 <- ggplot(mtcars) +
geom_boxplot(aes(gear, disp, group = gear))
p3 <- ggplot(mtcars) +
geom_bar(aes(gear)) +
facet_wrap(~cyl)
align_plots(
p1 + theme(plot.background = element_blank()),
p2 + theme(plot.background = element_blank()),
p3 + theme(plot.background = element_blank())
) +
layout_annotation(
theme = theme(plot.background = element_rect(fill = "red"))
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.