You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
169 B

3 years ago
install.packages("rpart")
library(rpart)
#x11()
formula = Species~.
iris.df=rpart(formula, data=iris)
iris.df
plot(iris.df)
text(iris.df, use.n=T, cex=0.7)
post(iris.df)