[R] measure displayed size of a character string

Paul Murrell pm254 at medschl.cam.ac.uk
Tue Jun 22 09:52:11 CEST 1999


>Is there a way to measure the length of a character string as
>text() or mtext() would display it?  Not in characters, but in
>inches or user coordinates.

hopefully strwidth() and strheight() will do what you want


r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list