[R] Text position in Traditional Graphics
Greg.Snow at intermountainmail.org
Wed Jan 24 23:22:24 CET 2007
If you are going to take this approach, you may want to look at the
cnvrt.coords function in the TeachingDemos package. That may save you a
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
greg.snow at intermountainmail.org
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Mike Prager
> Sent: Wednesday, January 24, 2007 3:01 PM
> To: r-help at stat.math.ethz.ch
> Subject: Re: [R] Text position in Traditional Graphics
> Mike Prager <mike.prager at noaa.gov> wrote:
> > R 2.4.1 on Windows XP.
> > Question: In traditional graphics, is it possible to find out the
> > height of a line of text in units that can be used in
> arithmetic and
> > then in calls to text()?
> I seem to have solved my own question by setting the user
> scale to the size of the window in inches, converting the
> point size into inches, and going from there. This works
> well for all sizes of windows. It doesn't change the spacing
> when windows are resized, but I can live with that.
> There is nothing like posting to R-help to stimulate one's
> own thoughts.
> Mike Prager, NOAA, Beaufort, NC
> * Opinions expressed are personal and not represented otherwise.
> * Any use of tradenames does not constitute a NOAA endorsement.
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help