pic.circular {picante} | R Documentation |
Computes the phylogenetic independent contrasts for traits with circular distributions
pic.circular(x, phy, scaled = TRUE, var.contrasts = FALSE)
x |
A vector of class circular, modulo = "2pi" with length equal to length(phy$edge.lable) |
phy |
An object of class phylo |
scaled |
logical, indicates whether the contrasts should be scaled with their expected variance (default to TRUE ). |
var.contrasts |
logical, indicates whether the expected variance of the contrasts should be returned (default to FALSE ) |
If x has names, these are matched to the dataframe, otherwise values are expected to be in the same order and an error is issued.
Vector of contrasts for trait x
on phylogeny phy
Peter Cowan <pdc@berkeley.edu> based on the ape
package pic
function by Emmanuel Paradis