search for: my_ccomp_df

Displaying 1 result from an estimated 1 matches for "my_ccomp_df".

2017 Nov 23
0
ccomp Composition and ggtern plot...
...fic functions), so you can convert it to a matrix (vector) with attr( my_ccomp, 'class' ) <- NULL and go from there. eg library(compositions) data(SimulatedAmounts) my_ccomp <- ccomp(sa.lognormals) print(class(my_ccomp)) attr(my_ccomp,'class')<-NULL print(class(my_ccomp)) my_ccomp_df <- as.data.frame(my_ccomp) # or, as I've just seen in the code of plot.ccomp, # my_ccomp_df <- as.data.frame(unclass(my_ccomp)) Regards, Ron.