Plot Predicted Probabilities
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)
rf |
an object inheriting from |
bins |
number of bins in histogram. Defaults to number of samples / 5. |
plot |
display the plot? |
the ggplot2 object is invisibly returned.
Eric Archer eric.archer@noaa.gov
data(mtcars) rf <- randomForest(factor(am) ~ ., mtcars) plotPredictedProbs(rf, bins = 20)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.