par('usr') will give you the coordinates of the corners of the current plot.
If you want to go a little beyond this (more like your legend example) by
specifying that you want your text to be some distance from the bottom and left
of the plot and have the distance not affected by the scale of the data then
you might want to look at the cnvrt.coords function in the TeachingDemos
package.
-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Thomas Steiner
Sent: Thu 2/9/2006 9:18 AM
To: [email protected]
Subject: [R] putting text in the corner
I want to write some text in a corner of my plot.
Is it possible to get the xlim and ylim of an open window?
Or is there anything similar like
legend(x="bottomright", inset=0.01,legend=...)
for
text(x=1,y=2, "test")
Thomas
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html