stringWidth

0th

Percentile

Create a Unit Describing the Width and Height of a String or Math Expression

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

Keywords
dplot
Usage
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.

See Also

unit and grobWidth

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

Aliases
  • stringWidth
  • stringHeight
  • stringAscent
  • stringDescent
Documentation reproduced from package grid, version 3.1.0, License: Part of R 3.1.0

Community examples

Looks like there are no examples yet.