Skip to content
Prev 247209 / 398506 Next

Rotated, Right-Justified Labels for Shortened Tick Marks

On 01/13/2011 11:59 AM, dms wrote:
Hi D,
Try this:

plot(-10:10,-10:10, yaxt='n')
axis(side=2,at=seq(-10,10,by=5),labels=rep("",5),tck=-.01)
par(cex=0.6)
mtext(seq(-10,10,by=5),at=seq(-10,10,by=5),side=2,line=0.3,cex=0.6)
par(cex=1)

Jim