wrap_format

0th

Percentile

Wrap text to a specified width, adding newlines for spaces if text exceeds the width

Wrap text to a specified width, adding newlines for spaces if text exceeds the width

Usage
wrap_format(width)
Arguments
width
value above which to wrap
Value

  • Function with single parameter x, a character vector, that returns a wrapped character vector

Aliases
  • wrap_format
Examples
wrap_10 <- wrap_format(10)
wrap_10('A long line that needs to be wrapped')
Documentation reproduced from package scales, version 0.2.5, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.