Re: [R] Beautifying axis tick labels

From: <Richard.Cotton_at_hsl.gov.uk>
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
"x10^5"
> (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)

Regards,
Richie.

Mathematical Sciences Unit
HSL



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

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html 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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive