plotMDS | R Documentation |
Plot multidimensional scaling plot for a RandomForest
class object.
plotMDS(
x,
cls = "class",
label = NULL,
shape = FALSE,
ellipses = TRUE,
title = "",
legendPosition = "bottom",
labelSize = 2
)
## S4 method for signature 'RandomForest'
plotMDS(
x,
cls = "class",
label = NULL,
shape = FALSE,
ellipses = TRUE,
title = "",
legendPosition = "bottom",
labelSize = 2
)
## S4 method for signature 'list'
plotMDS(
x,
label = NULL,
shape = FALSE,
ellipses = TRUE,
title = "",
legendPosition = "bottom",
labelSize = 2
)
x |
S4 object of class |
cls |
sample information column to use for sample labelling, Set to NULL for no labelling. |
label |
sample information column to use for sample labels. Set to NULL for no labels. |
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 |
title |
plot title |
legendPosition |
legend position to pass to legend.position argument
of |
labelSize |
label size. Ignored if |
library(metaboData)
x <- analysisData(abr1$neg[,200:300],abr1$fact) %>%
occupancyMaximum(cls = 'day') %>%
transformTICnorm()
rf <- randomForest(x,cls = 'day')
plotMDS(rf,cls = 'day')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.