Skip to content
Back to formatted view

Raw Message

Message-ID: <da79af330803120758r170f3cectfa17802ca1755d24@mail.gmail.com>
Date: 2008-03-12T14:58:35Z
From: Henrique Dallazuanna
Subject: Specifying relative position of text in a plot
In-Reply-To: <16002549.post@talk.nabble.com>

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