Description Usage Arguments Value Examples
Generates a standard PCA plot of observations in the dataset.
1 | plotSamplePCA(object, axis = c(1, 2), col.var = NULL, ...)
|
object |
A |
axis |
An integer vector indicating principal components to use for plotting, by default 1:2. |
col.var |
A character string indicating a column from sample_data(object) which should be used for coloring the points. By default NULL. |
... |
other parameters ggplot. |
Returns a ggplot2
objet.
1 2 3 | data("endoderm_small")
endoderm_small <- runPCA(endoderm_small)
plotSamplePCA(endoderm_small, col.var = "group")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.