Description Usage Arguments Value Examples
Plots multiple components of a PCA analysis computed with do_pca
1 2 3 |
fit |
princomp object as returned by |
group |
Vector with the group to which each sample belongs.
The samples must be ordered as in |
sample_colors |
Named character vector of colors. The names of the
colors must be the classes in |
comps |
Vector with the components to be plot |
plot_variance |
Logical, whether to plot the cumulative variance. |
legend |
Boolean, whether to plot a legend in the plot. Default is TRUE. |
cex |
Graphical parameter from |
pch |
Graphical parameter from |
main |
Main title of the image |
save_png |
Path to the file where the image as PNG will be saved. By default, the image is not saved. |
Plots multiple components of a PCA
1 2 3 4 | data(path_vals)
sample_group <- brca_design[colnames(path_vals),"group"]
pca_model <- do_pca(path_vals[seq_len(ncol(path_vals)),])
multiple_pca_plot(pca_model, sample_group, cex = 3, plot_variance = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.