labs_wrap: Wrap ggplot labels

Description Usage Arguments Examples

View source: R/geoms.R

Description

labs_wrap() wraps stringr::str_wrap() around any argument passed to ggplot2::labs(), thus wrapping it.

Usage

1

Arguments

...

Arguments passed to ggplot2::labs()

width

The width of the characters to wrap to.

Examples

1
2
3
4
5
library(ggplot2)
ggplot(mtcars, aes(mpg, hp)) +
labs_wrap(title =
  "Here is my really long title. You see, I have a lot to say, you see.",
  width = 30)

malcolmbarrett/mbmisc documentation built on May 17, 2019, 8:16 a.m.