cacomp_slot | R Documentation |
Access slots in a cacomp object
cacomp_slot(caobj, slot)
caobj |
a cacomp object |
slot |
slot to return |
Chosen slot of the cacomp object
# 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(obj = cnts, princ_coords = 3, top = 5)
# access left singular vectors
cacomp_slot(ca, "U")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.