It is box.col= in prp().

fancyRpartPlot() in Rattle currently uses a fixed colour palette (something
I should change).

You could change it in a local copy of the fancyRpartPlot() code (see the
line defining pals in the function):

> fancyRpartPlot

I also give an example around page 33 of the Decision Trees chapter (
http://onepager.togaware.com/DTreesO.pdf) from the OnePageR website (
http://onepager.togaware.com).



Graham Williams
http://togaware.com


On 11 July 2014 14:52, Abhinaba Roy <abhinabaro...@gmail.com> wrote:

> Hi Jean,
>
> I'd looked at the help for 'prp' but couldn't find the argument for
> changing box colours. Am I missing something?
>
>
> On Thu, Jul 10, 2014 at 8:01 PM, Adams, Jean <jvad...@usgs.gov> wrote:
>
> > The function fancyRpartPlot() is actually in the rattle package, and it
> is
> > a wrapper for the prp() function in the rpart.plot package.  If you look
> at
> > the help for prp(), you should be able to see how to change the color.
> >
> > library(rpart.plot)
> > ?prp
> >
> > Jean
> >
> >
> >
> > On Thu, Jul 10, 2014 at 12:34 AM, Abhinaba Roy <abhinabaro...@gmail.com>
> > wrote:
> >
> >> Hi R-helpers,
> >>
> >> Is it possible to change the color of the boxes when plotting decision
> >> trees using 'fancyRpartPlot()' from rpart.plot package ?
> >>
> >> --
> >> Regards,
> >> Abhinaba Roy
> >>
> >>         [[alternative HTML version deleted]]
> >>
> >> ______________________________________________
> >> 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.
> >>
> >
> >
>
>
> --
> Regards,
> Abhinaba Roy
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>

        [[alternative HTML version deleted]]

______________________________________________
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