;
> Mark Beauchene
>
> To: markbeauch...@hotmail.com
> CC: r-help@r-project.org
> Subject: Re: [R] Plotting rpart trees with long list of class members
> From: jvad...@usgs.gov
> Date: Tue, 10 Jul 2012 09:10:05 -0500
>
> Thanks. Very helpful.
>
> You can use the
Thanks. Very helpful.
You can use the information from the splits in the first tree, to define a
new grouping variable, which will simplify the plot:
suvar <- sort(unique(test_set$list_var))
test_set$var_grp <- as.factor(testtree$csplit[match(test_set$list_var,
suvar)])
testtree2 <- rpart ( lis
Here is some sample code. It generates a class (list_var) that is used in
rpart. list_val is the dependant variable.
The plot shows all the values of the class, which is a mess and makes the
plot unuseable. I'd like to either suppress the list entirely or replace it
with something like "Group 1
If you provide a simple example, with actual data and code so that we can
reproduce your issue, it would make it easier for readers of this list to
help.
Jean
MarkBeauchene wrote on 07/06/2012 04:38:32 PM:
> I have a class with 732 members, so using rpart.plot is giving me a tiny
plot
> in
I have a class with 732 members, so using rpart.plot is giving me a tiny plot
in the middle of the window. Is there a good way to modify the plot, or
replace the long list with something like "group1"?
--
View this message in context:
http://r.789695.n4.nabble.com/Plotting-rpart-trees-with-long-
5 matches
Mail list logo