[R] rpart: plot without scientific notation

David Winsemius dwinsemius at comcast.net
Thu Aug 25 17:35:08 CEST 2011


On Aug 25, 2011, at 10:38 AM, Jean V Adams wrote:

> I don't see a quick solution to this.
>
> You could contact the maintainer of the rpart.plot package, Stephen
> Milborrow
>
>     maintainer("rpart.plot")
>
> or you could try to modify the rpart.plot() function yourself to  
> meet your
> needs
>
>     rpart.plot
>
There would also be the possibility that the "options" might affect  
the desired change:

 > pi
[1] 3.141593
 > options(digits=1)
 > pi
[1] 3
 > options(digits=7)

 > pi/100000
[1] 3.141593e-05
 > options(scipen=7)   # default is 0
 > pi/100000
[1] 0.00003141593
 > options(scipen=0)

-- 
David.

> Jean
>
>
> Jay wrote on 08/25/2011 05:30:25 AM:
>>
>> While I'm very pleased with the results I get with rpart and
>> rpart.plot, I would like to change the scientific notation of the
>> dependent variable in the plots into integers. Right now all my 5 or
>> more digit numbers are displayed using scientific notation.
>>
>> I managed to find this:
>> http://tolstoy.newcastle.edu.au/R/e8/help/09/12/8423.html
>> but I do not fully understand what to change, and to what.
>>
>> ______________________________________________
>> 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.
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> 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.

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list