stringWidth: Create a Unit Describing the Width and Height of a String or...

Description Usage Arguments Value Author(s) See Also

Description

These functions create a unit object describing the width or height of a string.

Usage

1
2
3
4
stringWidth(string)
stringHeight(string)
stringAscent(string)
stringDescent(string)

Arguments

string

A character vector or a language object (as used for ‘plotmath’ calls.

Value

A unit object.

Author(s)

Paul Murrell

See Also

unit and grobWidth

strwidth in the graphics package for more details of the typographic concepts behind the computations.

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.