wrapit: Wrap text for ggplots.

Description Usage Arguments Value Author(s) Examples

View source: R/gg-adds.R

Description

wrapit wrap long texts to be used with ggplot package.

Usage

1
wrapit(text, width = 20)

Arguments

text

long text to be wrapped

width

width of the wrap

Value

wrapped text

Author(s)

Erick A. Chacon-Montalvan

Examples

1
2
3
long_text <- paste0(rep("this is a very long text", 10), collapse = " ")
cat(long_text)
cat(wrapit(text = long_text, 26))

ErickChacon/day2day documentation built on May 6, 2019, 4:03 p.m.