For each phyloseq object in a list, calculates beta-diversity between all samples using the phyloseq::distance function.
SIP_betaDiv_ord(physeq_l, method = "unifrac", weighted = TRUE,
fast = TRUE, normalized = TRUE, parallel = FALSE, plot = FALSE)
A list of phyloseq objects
See phyloseq::distance
Weighted Unifrac (if calculating Unifrac)
Fast calculation method
Normalized abundances
Calculate in parallel
Return a plot (instead of a data.frame of ordination data)
If plot==FALSE, a data.frame object of beta-diversity values. If plot==TRUE, a glob object for plotting.
# NOT RUN {
data(physeq_S2D2_l)
# }
# NOT RUN {
physeq_S2D2_l_df = SIP_betaDiv_ord(physeq_S2D2_l)
head(physeq_S2D2_l_df, n=3)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab