correlogram.formula
From ape v2.6-3
by Emmanuel Paradis
Phylogenetic Correlogram
This function computes a correlogram from taxonomic levels.
- Keywords
- regression
Usage
correlogram.formula(formula, data = NULL, use = "all.obs")
Arguments
- formula
- a formula of the type
y1+..+yn ~ g1/../gn
, where they
's are the data to analyse and theg
's are the taxonomic levels. - data
- a data frame containing the variables specified in the
formula. If
NULL
, the variables are sought in the user's workspace. - use
- a character string specifying how to handle missing
values (i.e.,
NA
). This must be one of "all.obs", "complete.obs", or "pairwise.complete.obs", or any unambiguous abbrevation of these. In the first case, the presence of missing
Details
See the vignette in R: vignette("MoranI")
.
Value
- An object of class
correlogram
which is a data frame with three columns: obs the computed Moran's I p.values the corresponding P-values labels the names of each level - or an object of class
correlogramList
containing a list of objects of classcorrelogram
if several variables are given as response informula
.
See Also
Examples
data(carnivora)
### Using the formula interface:
co <- correlogram.formula(SW ~ Order/SuperFamily/Family/Genus,
data=carnivora)
co
plot(co)
### Several correlograms on the same plot:
cos <- correlogram.formula(SW + FW ~ Order/SuperFamily/Family/Genus,
data=carnivora)
cos
plot(cos)
Community examples
Looks like there are no examples yet.