"Richards, Tom" wrote:>
> Hello:
>
> I am trying to get some text at an angle in the margins of a plot. I was
> accustomed under older versions of Splus to using srt in the mtext command,
> but that seems not to work under R,
>
> > version
> _
> platform i386-pc-mingw32
> arch x86
> os Win32
> system x86, Win32
> status
> major 1
> minor 3.0
> year 2001
> month 06
> day 22
> language R
>
> I see documented in ?mtext that one can use the las parameter to get text
> either parallel to or perpendicular to the axis in question, but is there
> any way to get other angles as well? I want the two letter
"X"'s to have
> the same angle in the following:
>
> plot(1:10,1:10)
> text(5,5,"X",srt=30)
> mtext("X",side=3,at=5,srt=30)
>
> Can this be done in R? Thanks for your response.
Use text() instead of mtext() as follows:
text(5, par("usr")[4], "X", srt = 30, xpd = TRUE, pos = 3)
Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at
stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._