View source: R/plotPredictedProbs.R
plotPredictedProbs | R Documentation |
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 strongly they are classified.
plotPredictedProbs(x, bins = 30, plot = TRUE)
x |
a |
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
library(randomForest)
data(mtcars)
rf <- randomForest(factor(am) ~ ., mtcars)
plotPredictedProbs(rf, bins = 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.