bagStumpImp <- randomForest(type ~ ., spamApp, mtry = ncol(spamApp) - 1, maxnodes = 2,
importance = TRUE)
varImpPlot(bagStumpImp, type = 1, scale = FALSE, n.var = 20, cex = 0.8, main = "Importance des variables")
RFStumpImp <- randomForest(type ~ ., spamApp, maxnodes = 2, importance = TRUE)
varImpPlot(RFStumpImp, type = 1, scale = FALSE, n.var = 20, cex = 0.8, main = "Importance des variables")