search for: my_ccomp

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

Did you mean: my_comp
2017 Nov 23
0
ccomp Composition and ggtern plot...
...ectly to a data.frame for use with ggplot (but I'm not very good with classes so I may be wrong). However, it does appear to be just a matrix(or vector) with a class added (I presume to facilitate the provision of class specific 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 c...