plotSamplePCA: Plot a standard PCA

Description Usage Arguments Value Examples

View source: R/plots.R

Description

Generates a standard PCA plot of observations in the dataset.

Usage

1
plotSamplePCA(object, axis = c(1, 2), col.var = NULL, ...)

Arguments

object

A TimeSeriesExperiment object

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.

Value

Returns a ggplot2 objet.

Examples

1
2
3
data("endoderm_small")
endoderm_small <- runPCA(endoderm_small)
plotSamplePCA(endoderm_small, col.var = "group")

TimeSeriesExperiment documentation built on Nov. 8, 2020, 11:09 p.m.