Plot receiver operator characteristic curves for a
RandomForest
class object.
Usage
plotROC(x, title = "", legendPosition = "bottom")
# S4 method for RandomForest
plotROC(x, title = "", legendPosition = "bottom")
# S4 method for list
plotROC(x, title = "", legendPosition = "bottom")
Arguments
- x
S4 object of class
RandomForest
- title
plot title
- legendPosition
legend position to pass to legend.position argument of
ggplot2::theme
. Set to "none" to remove legend.
Examples
library(metaboData)
x <- analysisData(abr1$neg[,200:300],abr1$fact) %>%
occupancyMaximum(cls = 'day') %>%
transformTICnorm()
rf <- randomForest(x,cls = 'day')
plotROC(rf)