as.list,cacomp-method | R Documentation |
Convert cacomp object to list.
## S4 method for signature 'cacomp'
as.list(x)
x |
A cacomp object. |
A cacomp object.
# Simulate counts
cnts <- mapply(function(x){rpois(n = 500, lambda = x)},
x = sample(1:100, 50, replace = TRUE))
rownames(cnts) <- paste0("gene_", 1:nrow(cnts))
colnames(cnts) <- paste0("cell_", 1:ncol(cnts))
# Run correspondence analysis
ca <- cacomp(obj = cnts, princ_coords = 3)
ca_list <- as.list(ca)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.