Message-ID: <1088790748.3929.91.camel@localhost.localdomain>
Date: 2004-07-02T17:52:28Z
From: Marc Schwartz
Subject: Vertical text in plot
In-Reply-To: <200407021945100791.16FEDF4E@mail.math.fu-berlin.de>
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