[R] how to change the tick character of x-axis ?
Jim Lemon
jim at bitwrit.com.au
Wed Jan 27 11:16:20 CET 2010
On 01/27/2010 04:08 PM, Jie TANG wrote:
> Hello,
> Now I draw a figure by boxplot ,but I am fail to add the tick information in
> the axis? How could I ?
>
> https://mail.google.com/mail/?ui=2&ik=c88089ec0a&view=att&th=1266e2c8dff41fcb&attid=0.1&disp=attd
>
> now I want to add the tick information in the x-axis as Class1
> ,Class2,Class3 instead of "X5,X12,V3,V4,V5,V6"
> What can I do to achieve my goal?thanks
>
Hi Jie,
Try this:
boxplot(count ~ spray, data = InsectSprays,
col = "lightgray",xaxt="n")
axis(1,at=1:6,labels=paste("Class",1:6,sep=""))
Jim
More information about the R-help
mailing list