plotROC: Plot receiver operator characteristic (ROC) curves

plotROCR Documentation

Plot receiver operator characteristic (ROC) curves

Description

Plot receiver operator characteristic curves for a RandomForest class object.

Usage

plotROC(x, title = "", legendPosition = "bottom")

## S4 method for signature 'RandomForest'
plotROC(x, title = "", legendPosition = "bottom")

## S4 method for signature '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)

jasenfinch/metabolyseR documentation built on Sept. 18, 2023, 1:25 a.m.