wrap: inserts line breaks into a string value after number of...

Description Usage Arguments Examples

View source: R/wrap.R

Description

inserts line breaks into a string value after number of characters in 'width'. This is useful in ensuring that ggplot titles do not run off the panel.

Usage

1
wrap(x, width = 20)

Arguments

x

a string value

Examples

1
wrap("This is a really long title of a plot that I want to nicely wrap and fit onto the plot without having to manually add the backslash n, but at the moment it does not", width = 20)

Kidapt/keda documentation built on Nov. 23, 2019, 3:35 a.m.