powered by
Plot histogram of assignment probabilities to predicted class. This is used for determining if the model differentiates between correctly and incorrectly classified samples in terms of how well they ar classified.
plotPredictedProbs(rf, bins = 30, plot = TRUE)
an object inheriting from randomForest.
randomForest
number of bins in histogram. Defaults to number of samples / 5.
display the plot?
the ggplot2 object is invisibly returned.
ggplot2
# NOT RUN { data(mtcars) rf <- randomForest(factor(am) ~ ., mtcars) plotPredictedProbs(rf, bins = 20) # }
Run the code above in your browser using DataLab