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 TANG Jie Email: totangjie at gmail.com Tel: 0086-2154896104 Shanghai Typhoon Institute,China -------------- next part -------------- A non-text attachment was scrubbed... Name: bjprserr.png Type: image/png Size: 3537 bytes Desc: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20100127/3aedc884/attachment.png>
how to change the tick character of x-axis ?
2 messages · Jie TANG, Jim Lemon
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