Skip to Content

stringWidth {grid}

Create a Unit Describing the Width and Height of a String or Math Expression
Package: 
grid
Version: 
R 3.0.2

Description

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

Usage

stringWidth(string)
stringHeight(string)
stringAscent(string)
stringDescent(string)

Arguments

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

Values

A unit object.

See Also

unit and grobWidth

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

Author(s)

Paul Murrell

Documentation reproduced from R 3.0.2. License: GPL-2.