ggwrap: Wrap a 'gglot2' plot over multiple rows.

Description Usage Arguments Value Examples

Description

Wrap a 'gglot2' plot over multiple rows.

Usage

1

Arguments

plot

A 'ggplot2' plot to be wrapped.

n

The number of rows in the wrapped plot.

Value

Returns a plot object which can be viewed or saved to file with 'ggplot2::ggsave'.

Examples

1
2
3
4
5
6
plot <- ggplot2::ggplot(
  ggplot2::economics,
  ggplot2::aes(x = date, y = unemploy, colour = uempmed)
) +
  ggplot2::geom_line()
plot <- ggwrap(plot, 4)

wilkox/ggwrap documentation built on May 21, 2019, 12:22 p.m.