An alternative to psmelt function from phyloseq-class object.
phy_to_ldf(x, transform.counts)phyloseq-class object
Data transform to be used in plotting
(but not in sample/taxon ordering). The options are 'Z-OTU', 'Z-Sample',
'log10' and 'compositional'. See the transform function
A data frame in long format with appropriate transfomation if requested