sparse_pca_biplot: Plot biplot for sparse pca

Description Usage Arguments Value Examples

View source: R/sparse_pca_biplot.R

Description

sparse_pca_biplot() creates a biplot for two principal components computed by sparse PCA (implemented by cellrangerRkit).

Usage

1
sparse_pca_biplot(sparse_pca_obj, pcs, group = NULL)

Arguments

sparse_pca_obj

a sparse pca object created by the cellRangerRkit sparse_pca() function

pcs

a two-component vector of PCs to plot e.g. c(1,2)

group

a vector specifying groups for the observations. The points on the biplot will be colored according to group

Value

A ggplot object

Examples

1
sparse_pca_biplot(sparse_pca_obj, pcs=c(1,2), group=pData(dat)$CellType)

jacobheng/cellwrangler documentation built on Aug. 12, 2019, 6:49 a.m.