[R] putting text in the corner

Duncan Murdoch murdoch at stats.uwo.ca
Thu Feb 9 19:05:37 CET 2006


On 2/9/2006 11:18 AM, Thomas Steiner wrote:
> 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")

par("usr")

gives you the limits.

Duncan Murdoch




More information about the R-help mailing list