R/scales.R
scale-wrap.Rd
This scale function wraps a 'gg' plot over multiple rows to make plots with long x axes easier to read.
scale_wrap(n)
the number of subplot pieces.
gg object
library(ggplot2) library(ggbreak) p <- ggplot(economics, aes(x=date, y = unemploy, colour = uempmed)) + geom_line() p + scale_wrap(n=4)