Discussion:
[R-sig-phylo] Partitioning of functional beta diversity
' Salatiel Clemente
2018-10-26 19:38:17 UTC
Permalink
Hello
I measured 11 morphological variables of 214 ant species in 12 plots. I'm
using the BAT package (Beta diversity (Taxon, Phylogenetic or Functional
Diversity - TD, PD, FD), to evaluate partitioning of functional beta
diversity.

I made two matrices, with the ant species: ncol: 214 and nrows: 12 and the
matrix with the morphological measures: ncol: 11 and nrows: 234. I followed
the example available in the package, but I did not obtain any results.
I elaborated as follows:








*sp<-read.table("betatax.txt",h=T)funct<-read.table("funcional.txt",
h=T)beta(sp)beta(sp, func = "Soerensen")beta(sp, funct)beta(sp, raref =
1)beta(sp, funct, abund = TRUE, "s", raref = 2)*

####################################################

F*ollows the example package:*

comm <- matrix(c(2,2,0,0,0,1,1,0,0,0,0,2,2,0,0,0,0,0,2,2), nrow = 4, ncol =
5, byrow = TRUE)
tree <- hclust(dist(c(1:5), method="euclidean"), method="average")
beta(comm)
beta(comm, func = "Soerensen")
beta(comm, tree)
beta(comm, raref = 1)
beta(comm, tree, abund = TRUE, "s", raref = 2)

[[alternative HTML version deleted]]

_______________________________________________
R-sig-phylo mailing list - R-sig-***@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/r-sig-***@r-project.org/
françois RIGAL
2018-10-27 09:06:26 UTC
Permalink
Hi
Functional information has to be a dendrogram and not a trait matrix.
just do:
tree_funct <- hclust(dist(funct), "ave »)
beta(sp, tree_funct)
Best
François Rigal
Post by ' Salatiel Clemente
Hello
I measured 11 morphological variables of 214 ant species in 12 plots. I'm
using the BAT package (Beta diversity (Taxon, Phylogenetic or Functional
Diversity - TD, PD, FD), to evaluate partitioning of functional beta
diversity.
I made two matrices, with the ant species: ncol: 214 and nrows: 12 and the
matrix with the morphological measures: ncol: 11 and nrows: 234. I followed
the example available in the package, but I did not obtain any results.
*sp<-read.table("betatax.txt",h=T)funct<-read.table("funcional.txt",
h=T)beta(sp)beta(sp, func = "Soerensen")beta(sp, funct)beta(sp, raref =
1)beta(sp, funct, abund = TRUE, "s", raref = 2)*
####################################################
F*ollows the example package:*
comm <- matrix(c(2,2,0,0,0,1,1,0,0,0,0,2,2,0,0,0,0,0,2,2), nrow = 4, ncol =
5, byrow = TRUE)
tree <- hclust(dist(c(1:5), method="euclidean"), method="average")
beta(comm)
beta(comm, func = "Soerensen")
beta(comm, tree)
beta(comm, raref = 1)
beta(comm, tree, abund = TRUE, "s", raref = 2)
[[alternative HTML version deleted]]
_______________________________________________
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
_______________________________________________
R-sig-phylo mailing list - R-sig-***@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/r-sig-***@r-p
Loading...