Re: [R] Vertical text in plot

From: Wolski <wolski_at_molgen.mpg.de>
Date: Sat 03 Jul 2004 - 04:21:50 EST

Hi Mark!

Just wonderfull.
Was searching in the par documention file for vertical, angle, horizontal. The word rotation was out of my mind. Thanks a lot.

Eryk

On 7/2/2004 at 12:52 PM Marc Schwartz wrote:

>>>On Fri, 2004-07-02 at 12:45, Wolski wrote:
>>>> Hallo!
>>>> Would like to add vertical text labels to a histogram. Was trying with
>>>las but without sucess.
>>>> I am using the standard histogram.
>>>> This is what I was trying.
>>>>
>>>>
>>>hist(resS2$sam,breaks=seq(0,1,0.01),col=3,border=0,freq=F,add=T,xlim=c(0,1))
>>>> text(quantile(resS2$dif,0.005),5, "0.5% FP rate" ,pos=2,cex=0.6,las=2)
>>>>
>>>> Thanks in advance.
>>>> Eryk
>>>
>>>
>>>Hi Eryk!
>>>
>>>Try using 'srt' instead of 'las', which is for the axis labels.
>>>
>>>For example:
>>>
>>>text(quantile(resS2$dif, 0.005), 5, "0.5% FP rate",
>>> pos = 2, cex = 0.6, srt = 90)
>>>
>>>See ?par for more information.
>>>
>>>HTH,
>>>
>>>Marc Schwartz
>>>
>>>______________________________________________
>>>R-help@stat.math.ethz.ch mailing list
>>>https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>>>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Dipl. bio-chem. Eryk Witold Wolski @ MPI-Moleculare Genetic

Ihnestrasse 63-73 14195 Berlin       'v'    
tel: 0049-30-83875219               /   \    
mail: wolski_at_molgen.mpg.de        ---W-W----    http://www.molgen.mpg.de/~wolski

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Jul 03 04:25:31 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:54:39 EST