wrapper: Wrap text in ggplot2

wrapperR Documentation

Wrap text in ggplot2

Description

taken from twitter @geokaramanis but he attributes it to an anon stack overflow postl

Usage

wrapper(x, ...)

Arguments

x

some text for a ggplot label.

Details

example: subtitle = wrapper("Really long text...", width = 80)

Value

wrapped text for a ggplot label.


McCartneyAC/mccrr documentation built on March 24, 2024, 5:12 p.m.