Description Usage Value Examples
This simple wrapper creates an empty transparant plot that can be added to push your other plots apart
1 |
A ggplot
object containing an empty plot
1 2 3 4 5 6 | library(ggplot2)
p1 <- ggplot(mtcars) + geom_point(aes(mpg, disp))
p2 <- ggplot(mtcars) + geom_boxplot(aes(gear, disp, group = gear))
p1 + plot_spacer() + p2
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.