[R] Beautifying axis tick labels

Richard.Cotton at hsl.gov.uk Richard.Cotton at hsl.gov.uk
Thu Apr 10 11:37:03 CEST 2008

> For example, the y axis shows "0 500000 1500000". Is there any way to
> beautify the tick labels to get 0 5 10 15, and at the top of y-axis 
> (superscript 5) ? My plots all have different ylim, how to perform the
> beautification automatically ?

plot((0:15)*1e5, yaxt="n", ylab="")
axis(side=2, at=c(0,5,15)*1e5, labels=c(0,5,15))
mtext("x10^5", adj=-.1)


Mathematical Sciences Unit


This message contains privileged and confidential inform...{{dropped:20}}

More information about the R-help mailing list