host_data | R Documentation |
Adds host phylogenetic data from a tree to community data object.
host_data(com, tree, plant = "host_species", k = 4)
com |
a community data object. |
tree |
tree in 'ape' format with phylogenetic relationships between hosts. The tip labels should much values in a column of 'env' containing the host affiliation. |
plant |
name of the column in 'env' where the host plant names are stored. |
k |
the number of eigenvectors retained. |
Returns phylogenetic eigenvalues obtained from a Principal Coordinates Analysis calculated from the phylogenetic data.
A list with community data.
host_data()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.