plotPCA | R Documentation |
This function will generate a general 2D scatterplot for a given set of principal components.
plotPCA(
pcaObj,
x = 1,
y = 2,
cluster = FALSE,
nClust = 2,
metadata = NULL,
mCol = NULL,
interactive = FALSE,
pointColor = "black"
)
pcaObj |
A |
x |
Principal component number to plot on x-axis. |
y |
Principal component number to plot on y-axis. |
cluster |
Plot points by hierachical clustering groups? Defaults to
|
nClust |
Number of clusters to report. |
metadata |
A |
mCol |
What metadata column do you want to plot? Needs metadata object to work. |
interactive |
Do you want to produce an interactive visualization?
Defaults to |
pointColor |
color of non-categorical PCA data points. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.