Description Usage Arguments Value Examples
View source: R/sparse_pca_biplot.R
sparse_pca_biplot() creates a biplot for two principal components computed by sparse PCA (implemented by cellrangerRkit).
1 | sparse_pca_biplot(sparse_pca_obj, pcs, group = NULL)
|
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 |
A ggplot object
1 | sparse_pca_biplot(sparse_pca_obj, pcs=c(1,2), group=pData(dat)$CellType)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.