[R] How to draw the decision boundaries for LDA and Rpart object

hadley wickham h.wickham at gmail.com
Thu Aug 10 01:51:02 CEST 2006


> Could you please tell me how to draw the decision boundaries in a scatterplot of the original data for a LDA or Rpart object.
>
> For example:
> > library(rpart)
> >fit.rpart <- rpart(as.factor(group.id)~., data=data.frame(Data) )
>

You might want to have a look a classifly
(http://had.co.nz/classifly/) which will do this in high dimensions.
(You will need to install ggobi for it to work, however)

Hadley



More information about the R-help mailing list