plotImportance | R Documentation |
Plot Univariate or random forest feature importance.
plotImportance(x, ...)
## S4 method for signature 'Univariate'
plotImportance(x, response = "class", rank = TRUE, threshold = 0.05)
## S4 method for signature 'RandomForest'
plotImportance(x, metric = "false_positive_rate", rank = TRUE)
## S4 method for signature 'list'
plotImportance(x, metric = "false_positive_rate")
x |
S4 object of class |
... |
arguments to pass to specific method |
response |
response results to plot |
rank |
rank feature order for plotting |
threshold |
explanatory threshold line for the output plot |
metric |
importance metric to plot |
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')
plotImportance(rf,rank = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.