plotSupervisedRF | R Documentation |
A multidimensional scaling (MDS) plot of supervised random forest analysis
plotSupervisedRF(
x,
cls = "class",
rf = list(),
label = NULL,
shape = FALSE,
ellipses = TRUE,
ROC = TRUE,
seed = 1234,
title = "",
legendPosition = "bottom",
labelSize = 2,
...
)
## S4 method for signature 'AnalysisData'
plotSupervisedRF(
x,
cls = "class",
rf = list(),
label = NULL,
shape = FALSE,
ellipses = TRUE,
ROC = TRUE,
seed = 1234,
title = "",
legendPosition = "bottom",
labelSize = 2
)
## S4 method for signature 'Analysis'
plotSupervisedRF(
x,
cls = "class",
rf = list(),
label = NULL,
shape = FALSE,
ellipses = TRUE,
ROC = TRUE,
seed = 1234,
title = "",
legendPosition = "bottom",
labelSize = 2,
type = c("pre-treated", "raw")
)
x |
object of class |
cls |
information column to use for sample classes |
rf |
list of additional parameters to pass to |
label |
information column to use for sample labels. Set to |
shape |
TRUE/FALSE use shape aesthetic for plot points. Defaults to TRUE when the number of classes is greater than 12 |
ellipses |
TRUE/FALSE, plot multivariate normal distribution 95% confidence ellipses for each class |
ROC |
should receiver-operator characteristics be plotted? |
seed |
random number seed |
title |
plot title |
legendPosition |
legend position to pass to legend.position argument
of |
labelSize |
label size. Ignored if |
... |
arguments to pass to the appropriate method |
type |
|
library(metaboData)
d <- analysisData(abr1$neg[,200:300],abr1$fact)
## Supervised random forest MDS plot
plotSupervisedRF(d,cls = 'day')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.