The R Project SVN R

Rev

Rev 68948 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
42333 ripley 1
% File src/library/grid/man/stringWidth.Rd
68948 ripley 2
% Part of the R package, https://www.R-project.org
59039 ripley 3
% Copyright 1995-2011 R Core Team
42333 ripley 4
% Distributed under GPL 2 or later
5
 
28443 murrell 6
\name{stringWidth}
56186 murdoch 7
\alias{stringWidth}
28443 murrell 8
\alias{stringHeight}
57567 murrell 9
\alias{stringAscent}
10
\alias{stringDescent}
55722 ripley 11
\title{Create a Unit Describing the Width and Height of a String or Math
12
  Expression}
28443 murrell 13
\description{
14
  These functions create a unit object describing the width or height of
15
  a string.
16
}
17
\usage{
18
stringWidth(string)
19
stringHeight(string)
57567 murrell 20
stringAscent(string)
21
stringDescent(string)
28443 murrell 22
}
23
\arguments{
55722 ripley 24
  \item{string}{A character vector or a language object (as used for
74363 maechler 25
    \sQuote{\link{plotmath}} calls).}
28443 murrell 26
}
27
\value{
55722 ripley 28
  A \code{\link{unit}} object.
28443 murrell 29
}
30
\author{Paul Murrell}
31
\seealso{
32
  \code{\link{unit}} and
33
  \code{\link{grobWidth}}
55722 ripley 34
 
35
  \code{strwidth} in the \pkg{graphics} package for more details of the
36
  typographic concepts behind the computations.
28443 murrell 37
}
38
\keyword{dplot}