plotSamplePCA {TimeSeriesExperiment} | R Documentation |
Generates a standard PCA plot of observations in the dataset.
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.
data("endoderm_small") endoderm_small <- runPCA(endoderm_small) plotSamplePCA(endoderm_small, col.var = "group")