Re: [R] Beautifying axis tick labels

From: <>
Date: Thu, 10 Apr 2008 10:37:03 +0100

> 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

ATTENTION: This message contains privileged and confidential inform...{{dropped:20}} mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Thu 10 Apr 2008 - 09:40:27 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 10 Apr 2008 - 10:30:27 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive