Learn R Programming

provenance (version 1.3)

as.acomp: create an acomp object

Description

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

Usage

as.acomp(x)

Arguments

x
an object of class compositional

Value

  • a data.frame

Examples

Run this code
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)

Run the code above in your browser using DataLab