[R] text at the upper left corner outside of the plot region
Greg.Snow at imail.org
Thu Mar 5 18:07:23 CET 2009
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
greg.snow at imail.org
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of batholdy at googlemail.com
> Sent: Wednesday, March 04, 2009 5:06 PM
> To: r-help at r-project.org
> Subject: [R] text at the upper left corner outside of the plot region
> 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.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help