scale_wrap: scale_wrap This scale function wraps a 'gg' plot over...

Description Usage Arguments Value Examples

View source: R/scales.R

Description

scale_wrap

This scale function wraps a 'gg' plot over multiple rows to make plots with long x axes easier to read.

Usage

1

Arguments

n

the number of subplot pieces.

Value

gg object

Examples

1
2
3
4
5
library(ggplot2)
library(ggbreak)
p <- ggplot(economics, aes(x=date, y = unemploy, colour = uempmed)) +
     geom_line()
p + scale_wrap(n=4)

ggbreak documentation built on Oct. 25, 2021, 5:10 p.m.