Description Usage Arguments Examples
3D plot from 3 components
1 2 | pca_plot_3d(dataset, model, var.class, pcas = 1:3, colors = NULL,
legend.place = "topright", ...)
|
dataset |
list representing the dataset from a metabolomics experiment. |
model |
model with pca scores (pls model). |
var.class |
metadata column class. |
pcas |
the components to be plotted. |
colors |
colors of the groups. |
legend.place |
legend place. |
... |
additional parameters to legend function. |
1 2 3 4 5 6 | ### Example of a 3d pca plot
library(specmine.datasets)
data("cachexia")
train.result = train_models_performance(cachexia, "pls",
"Muscle.loss", "cv")
pca_plot_3d(cachexia, train.result$final.models$pls, "Muscle.loss")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.