[R] Scientific Notation
Francisco J. Zagmutt
gerifalte28 at hotmail.com
Wed Sep 26 19:24:52 CEST 2007
I believe the argument to format is "scientific" i.e.
axis(2, at=at, labels=format(at, scientific=FALSE))
Best regards,
Francisco
Duncan Murdoch wrote:
> 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 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.
>
More information about the R-help
mailing list