Re: [R] putting text in the corner

From: Kjetil Brinchmann Halvorsen <kjetilbrinchmannhalvorsen_at_gmail.com>
Date: Fri 10 Feb 2006 - 08:04:40 EST

Fernando Mayer wrote:
> You can get the x and y position of any place of an open graphic device
> with the mouse cursor, using the function locator(), and even assing
> this values to an object, as in:
>
> xy<-locator()
>
> You will have a list with x and y positions. Then you can use:
>
> text(xy$x,xy$y,...)

or even

    text(locator(), "test", ...)

Kjetil

>
> See ?locator.
>
> HTH,
> Fernando Mayer.
>
> Thomas Steiner escreveu:
>
>> 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
>>
>> ______________________________________________
>> 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
>>
>>
>>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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
>



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 Received on Fri Feb 10 09:36:01 2006

This archive was generated by hypermail 2.1.8 : Sat 11 Feb 2006 - 03:09:51 EST