Description Usage Arguments Details Value Note Author(s) References See Also Examples
Produces plots of varigram objects (semi-variance vs. time lag) and model semi-variance functions, with approximate confidence intervals around the semi-variance estimates.
1 2 |
x |
A |
CTPM |
A |
col |
Color for the empirical variogram. Can be an array. |
col.CTPM |
Color for the model. Can be an array. |
fraction |
The proportion of the variogram object, |
... |
Additional |
For highly irregularly phylogenetic distances with few species, it may be useful to set complete = FALSE
to coarsen the variogram. When this is the cases, species are binned across lags, with the number of lags estimated using either kmeans
or Gaussian Mixture Modelling GMM
clustering with n classes = √(N).
Returns a plot of semi-variance vs. time lag, with the empirical variogram in black and the ctpm
semi-variance function in red if specified.
The errors of the empirical variogram are correlated. Smooth trends are not necessarily significant.
M. J. Noonan, C. H. Fleming.
Noonan, M. J., Fagan, W. F., and Fleming C. H. (2021) “A semi-variance approach to visualising phylogenetic autocorrelation”. Methods in Ecology and Evolution, in press.
vignette("variogram", package = "ctpm")
, variogram
, ctpm.fit
.
1 2 3 4 5 6 7 8 9 10 11 12 13 | #Load package and data
library(ctpm)
data("moid_traits")
data("musteloids")
#Extract the trait of interest from the full dataset
SSD <- moid_traits$SSD
#Calculate variogram
SVF <- variogram(SSD, musteloids)
#Plot the variogram
plot(SVF)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.