View source: R/NMRMetab_average_prediction_metrics.R
PLSDA score plot
1 2 3 4 5 6 7 8 9 | NMRMetab_PLS_DA_plot(
data,
groupID = "group",
index_col = 3,
components = c(1, 2),
scale = F,
elipses = F,
size_point = 3
)
|
data |
a matrix or a data.frame. rows are samples and columns are grouping and metabolites or bins |
groupID |
a vercors with the column name contining the grouping of the data. This parameter is to be use to mae sure that the 2 new data.frames created have all groups mentioned in the column we identifiy |
index_col |
name of the column containing the groups |
components |
a vector with 2 integer values. default set to 1 and 2 |
scale |
does it need scaling |
elipses |
boolean. add elipsess around the groups? defailt is False |
size_point |
double. control the size of the plotted points |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.