dissimilarity always returns a
*distance* object, not a similarity object; this is a different
convention from other packages.dissimilarity(data, metric = c("all", "unifrac", "pcd", "phylosor",
"comdist"), abundance = TRUE, permute = 100, sqrt.phy = FALSE,
traitgram = NULL, traitgram.p = 2, ext.dist = NULL, ...)comparative.comm objectall) calculates everything;
individually call-able metrics are: unifrac, pcd,
phylosor, comdist.pcd)funct.phylo.dist (phyloWeight; the `a' parameter),
causing analysis on a distance matrix reflecting both traits and
phylogeny (0 --> only phylogeny, 1 --> only traits; see
funtraitgram when calling funct.phylo.dist.coef method does not
exist for this function, because there's no nice way to simplify
all the distance matrices. Sorry!pez won't give you an answer for
metrics for which WDP thinks it makes no sense. All results from
this other than comdist *will always be wrong* if you do not
have an ultrametric tree and square-root (branch lengths
proportional to time) and you will be warned about this. WDP
strongly feels you should only be using ultrametric phylogenies in
any case, but code to fix this bug is welcome.unifrac Lozupone C.A. & Knight
R. (2005). UniFrac: a new phylogenetic method for comparing
microbial communities. Applied and Environmental Microbiology, 71,
8228-8235.
pcd Ives A.R. & Helmus M.R. (2010). Phylogenetic
metrics of community similarity. The American Naturalist, 176,
E128-E142.
phylosor Bryant J.A., Lamanna C., Morlon H.,
Kerkhoff A.J., Enquist B.J. & Green J.L. (2008). Microbes on
mountainsides: Contrasting elevational patterns of bacterial and
plant diversity. Proceedings of the National Academy of Sciences of
the United States of America, 105, 11505-11511.
comdist C.O. Webb, D.D. Ackerly, and
S.W. Kembel. 2008. Phylocom: software for the analysis of
phylogenetic community structure and trait
evolution. Bioinformatics 18:2098-2100.
shape evenness dispersiondata(laja)
data <- comparative.comm(invert.tree, river.sites, invert.traits)
dissimilarity(data)
dissimilarity(data, "unifrac")Run the code above in your browser using DataLab