as.acomp: create an 'acomp' object

Description Usage Arguments Value Examples

View source: R/io.R

Description

Convert an object of class compositional to an object of class acomp for use in the compositions package

Usage

1

Arguments

x

an object of class compositional

Value

a data.frame

Examples

1
2
3
4
5
6
7
8
data(Namib)
qfl <- ternary(Namib$PT,c('Q'),c('KF','P'),c('Lm','Lv','Ls'))
plot(qfl,type="QFL.dickinson")
qfl.acomp <- as.acomp(qfl)
## uncomment the next two lines to plot an error
## ellipse using the compositions package: 
# library(compositions)
# ellipses(mean(qfl.acomp),var(qfl.acomp),r=2)

provenance documentation built on May 5, 2021, 1:06 a.m.