In addition to the other responses that you have received, you can use the 
grconvertX and grconvertY functions to convert between the different coordinate 
systems, the upper left corner will be 0,1 in ndc (whole device/page), nfc 
(figure region), npc (plot region), or nic (inside the outer margins) 
coordinates, convert this to user coordinates and use the text function.  You 
may need to turn off clipping, see the xpd entry under ?par.

Hope this helps,

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.s...@imail.org
801.408.8111


> -----Original Message-----
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
> project.org] On Behalf Of batho...@googlemail.com
> Sent: Wednesday, March 04, 2009 5:06 PM
> To: r-help@r-project.org
> Subject: [R] text at the upper left corner outside of the plot region
> 
> Hi,
> 
> is there a way to place text at the upper left corner (or another
> corner) of the plot?
> 
> I want to place it really at the upper left corner of the whole plot
> (the file I get),
> not at the upper left corner of the plot-region.
> 
> 
> 
> I tried text() and mtext(), and corner.label() of the plotrix package
> but it didn't work out.
> 
> 
> thanks!
> 
> ______________________________________________
> R-help@r-project.org 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@r-project.org 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.

Reply via email to