plot_sparse_pca_var: Plot variance explained by sparse PCA

Description Usage Arguments Value Examples

View source: R/plot_sparse_pca_var.R

Description

plot_sparse_pca_var() plots the variance explained by sparse PCA (implemented by cellrangerRkit) as a line graph.

Usage

1
plot_sparse_pca_var(sparse_pca_obj, n_pcs = NULL)

Arguments

sparse_pca_obj

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

n_pcs

number of PCs to plot; defaults to NULL; if null, all the PCs will be plotted

Value

A ggplot object

Examples

1
plot_sparse_pca_var(sparse_pca_obj, n_pcs = 40)

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