View source: R/alignpatch-align_plots.R
layout_title | R Documentation |
Annotate the whole layout
layout_title(title = waiver(), subtitle = waiver(), caption = waiver())
title |
The text for the title. |
subtitle |
The text for the subtitle for the plot which will be displayed below the title. |
caption |
The text for the caption which will be displayed in the bottom-right of the plot by default. |
A layout_title
object.
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, p2, p3) +
layout_title(title = "I'm title")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.