wrap_strings: Wrap strings for readibility on plots

wrap_stringsR Documentation

Wrap strings for readibility on plots

Description

Handy function for wrapping long text strings for usage in plots

Usage

wrap_strings(strings, width)

Arguments

strings

Text strings

width

Max length before inserting line shift

Value

Text strings with inserted line shifts

Examples

wrapped_string <- wrap_strings(c("This is a long text to be wrapped"), 10)


kharchenkolab/cacoa documentation built on Nov. 8, 2024, 6:06 a.m.