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

From: Am Stat <amstat2006_at_gmail.com>
Date: Wed 09 Aug 2006 - 15:16:17 EST


Hello useR,

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) )

How can I draw the cutting lines on the orignial Data?

Or is there any built in functions that can read the rpart object 'fit.rpart' to do that?

Thanks very much in advance!

Leon

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch 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. Received on Wed Aug 09 15:26:29 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 10 Aug 2006 - 10:19:38 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.