subset_dims | R Documentation |
Subsets the dimensions according to user input.
subset_dims(caobj, dims)
caobj |
A caobj. |
dims |
Integer. Number of dimensions. |
Returns caobj.
# Simulate scRNAseq data.
cnts <- data.frame(cell_1 = rpois(10, 5),
cell_2 = rpois(10, 10),
cell_3 = rpois(10, 20))
rownames(cnts) <- paste0("gene_", 1:10)
cnts <- as.matrix(cnts)
# Run correspondence analysis.
ca <- cacomp(cnts)
ca <- subset_dims(ca, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.