Description Usage Arguments Value Examples
Takes the Procrustes object from vegan::procrustes
of the global superimpostion and pulls out either the residual matrix of superimposition or the residual of each individual interaction (link between host and parasite).
1 | residuals_paco(object, type = "interaction")
|
object |
An obejct of class |
type |
Character string. Whether the whole residual matrix ( |
If type=interaction
, a named vector of the Procrustes residuals is returned where names are the interactions. If type=matrix
, a matrix of residuals from Procrustes superimposition is returned.
1 2 3 4 5 6 7 8 | data(gopherlice)
library(ape)
gdist <- cophenetic(gophertree)
ldist <- cophenetic(licetree)
D <- prepare_paco_data(gdist, ldist, gl_links)
D <- add_pcoord(D, correction='cailliez')
D <- PACo(D, nperm=100, seed=42, method='r0')
residuals_paco(D$proc)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.