Re: [R] Text position in Traditional Graphics

From: Greg Snow <Greg.Snow_at_intermountainmail.org>
Date: Wed 24 Jan 2007 - 22:22:24 GMT


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 few calculations.

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow@intermountainmail.org
(801) 408-8111
 
 


> -----Original Message-----
> From: r-help-bounces@stat.math.ethz.ch
> [mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of Mike Prager
> Sent: Wednesday, January 24, 2007 3:01 PM
> To: r-help@stat.math.ethz.ch
> Subject: Re: [R] Text position in Traditional Graphics
>
> Mike Prager <mike.prager@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@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
> ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Received on Thu Jan 25 15:28:11 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 25 Jan 2007 - 05:30:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.