Description Usage Arguments Value Examples
Convert an object of class matrix
, data.frame
or
acomp
to an object of class compositional
1 | as.compositional(x, method = NULL, colmap = "rainbow")
|
x |
an object of class |
method |
dissimilarity measure, either |
colmap |
the colour map to be used in pie charts. |
an object of class compositional
1 2 3 4 5 6 7 8 9 10 11 | data(Namib)
PT.acomp <- as.acomp(Namib$PT)
PT.compositional <- as.compositional(PT.acomp)
print(Namib$PT$x - PT.compositional$x)
## uncomment the following lines for an illustration of using this
## function to integrate the \code{provenance} package with \code{compositions}
# library(compositions)
# data(Glacial)
# a.glac <- acomp(Glacial)
# c.glac <- as.compositional(a.glac)
# summaryplot(c.glac,ncol=8)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.