[R] Vertical text in plot

Wolski wolski at molgen.mpg.de
Fri Jul 2 20:21:50 CEST 2004


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



*********** REPLY SEPARATOR  ***********

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 at 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




More information about the R-help mailing list