Re: [R] Specifying relative position of text in a plot

From: Henrique Dallazuanna <wwwhsd_at_gmail.com>
Date: Wed, 12 Mar 2008 11:58:35 -0300

Try this:

plot(rnorm(100))
text(diff(par("usr")[1:2])/10, sum(par("usr")[3:4])/2, labels="Test")

On 12/03/2008, Tom La Bone <booboo_at_gforcecable.com> wrote:
>
> What is the simplest way to specify the location of text in a scatter plot
> (created using the plot function) in relative terms rather than specific x-y
> coordinates? For example, rather than putting text at (300,49) on a plot,
> how do I put it 1/10 of the way over from the y axis and 1/2 of the way up
> from the x axis? Thanks.
>
> Tom
> --
> View this message in context: http://www.nabble.com/Specifying-relative-position-of-text-in-a-plot-tp16002549p16002549.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help_at_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.
>

-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

______________________________________________
R-help_at_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.
Received on Wed 12 Mar 2008 - 15:11:27 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 12 Mar 2008 - 16:30:21 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive