plot_spacer: Add a completely blank area

Description Usage Value Examples

View source: R/plot_spacer.R

Description

This simple wrapper creates an empty transparant plot that can be added to push your other plots apart

Usage

1

Value

A ggplot object containing an empty plot

Examples

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

YTLogos/patchwork documentation built on May 7, 2019, 3:20 p.m.