Description Usage Arguments Value See Also Examples
View source: R/analysis_dimReduction_pca.R
Create a scatterplot from a PCA object
1 2 3 4 5 6 7 8 9 |
pca |
|
pcX |
Character: name of the X axis of interest from the PCA |
pcY |
Character: name of the Y axis of interest from the PCA |
groups |
Matrix: groups to plot indicating the index of interest of the samples (use clinical or sample groups) |
individuals |
Boolean: plot PCA individuals |
loadings |
Boolean: plot PCA loadings/rotations |
nLoadings |
Integer: Number of variables to plot, ordered by those that
most contribute to selected principal components (this allows for faster
performance as only the most contributing variables are rendered); if
|
Scatterplot as an highchart
object
Other functions to analyse principal components:
calculateLoadingsContribution()
,
performPCA()
,
plotPCAvariance()
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.