wrapProportionalString: Wrap proportional-font string

wrapProportionalStringR Documentation

Wrap proportional-font string

Description

Wraps a string, taking into account different widths of characters in text rendered with proportional fonts ('W' is much wider than 'i').

Usage

wrapProportionalString(string, width, by = "\n")

Arguments

string

character string.

width

numeric; maximum width of the wrapped text.

by

line separator (default: newline character).

Value

wrapped character string.


Roche/ggtips documentation built on May 14, 2022, 12:44 p.m.