as.counts | R Documentation |
counts
objectConvert an object of class matrix
or data.frame
to an
object of class counts
as.counts(x, method = "chisq", colmap = "rainbow")
x |
an object of class |
method |
either |
colmap |
the colour map to be used in pie charts. |
an object of class counts
X <- matrix(c(0,100,0,30,11,2,94,36,0),nrow=3,ncol=3)
rownames(X) <- 1:3
colnames(X) <- c('a','b','c')
comp <- as.counts(X)
d <- diss(comp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.