# NOT RUN {
library("partykit")
r1 <- ctree(Species ~ ., data = iris)
library("rpart")
r2 <- rpart(Species ~ ., data = iris)
stab <- stability(r1, r2, names = c("ctree", "rpart"))
boxplot(stab)
# }
Run the code above in your browser using DataLab