On 9/26/2007 11:24 AM, Jacques Wagnor wrote:
> Dear List:
> 
> Below is how I specify an axis:
> 
> axis(2, at=c(0.00005, 0.0005))
> 
> R displays the numbers in scientific notation.  What
> argument/parameter should I use to tell R to display the numbers as
> specified rather than in scientific notation?

Something like

axis(2, at=c(0.00005, 0.0005), labels=c("0.00005", "0.0005"))

is a way to be 100% sure of what will be displayed, but in this 
particular instance,

at <- c(0.00005, 0.0005)
axis(2, at=at, labels=format(at, sci=FALSE))

comes close, and there may be some other format spec that gets exactly 
what you want.

Duncan Murdoch

______________________________________________
R-help@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.

Reply via email to