plotMetrics: Plot model performance metrics

plotMetricsR Documentation

Plot model performance metrics

Description

Plot random forest model performance metrics

Usage

plotMetrics(x, response = "class")

## S4 method for signature 'RandomForest'
plotMetrics(x)

## S4 method for signature 'list'
plotMetrics(x)

Arguments

x

S4 object of class RandomForest

response

response results to plot

Examples

library(metaboData)

x <- analysisData(abr1$neg[,200:300],abr1$fact) %>%
       keepClasses(cls = 'day',classes = c('H','1','5')) %>% 
       occupancyMaximum(cls = 'day') %>%
       transformTICnorm()
       
rf <- randomForest(x,cls = 'day',binary = TRUE)

plotMetrics(rf,response = 'day')

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