plot_pca: Create a PCA plot

Description Usage Arguments See Also Examples

View source: R/Methods-plot.R

Description

Create a PCA plot of an mSet object

Usage

1
plot_pca(object, color, ellipse = FALSE, ...)

Arguments

object

an mSet object

color

character variable indicating which sample variable will be used to give colors. If length is larger than 1, the two variables will be used by calling interaction

ellipse

boolean whether to draw ellipses.

See Also

ggscatterplot

Examples

1
2
3
plot_pca(lipid)
plot_pca(lipid, color = "Treatment")
plot_pca(lipid, color = c("Treatment", "Timepoint"), ellipse = TRUE)

zhuchcn/Metabase documentation built on July 23, 2019, 1:36 p.m.