Learn R Programming

ctmm (version 0.3.3)

plot.variogram: Plotting methods for variogram objects.

Description

Produces simple plots of varigram objects (semi-variance vs. time lag) and model semi-variance functions, with approximate confidence intervals around the semi-variance estimates.

Usage

"plot"(x,CTMM=NULL,level=0.95,fraction=0.5,col="black",col.CTMM="red",...)
"zoom"(x,fraction=0.5,...)

Arguments

x
A variogram object calculated using variogram.
CTMM
A ctmm movement model object in the same format as the output of ctmm.fit or variogram.fit.
level
Confidence level of confidence bands (95% default CIs). Can be an array.
fraction
The proportion of the variogram object, variogram, that will be plotted. By convention, half is shown. The tail end is generally garbage.
col
Color for the empirical variogram. Can be an array.
col.CTMM
Color for the model. Can be an array.
...
Additional plot function parameters.

Value

ctmm semi-variance function in red if specified. zoom includes a log-scale zoom slider to manipulate fraction.

References

C. H. Fleming, J. M. Calabrese, T. Mueller, K.A. Olson, P. Leimgruber, and W. F. Fagan. (2014). From fine-scale foraging to home ranges: A semi-variance approach to identifying movement modes across spatiotemporal scales. The American Naturalist, 183(5), E154-E167.

See Also

ctmm.fit, plot, variogram, variogram.fit.

Examples

Run this code
# Load package and data
library(ctmm)
data(buffalo)

# Extract movement data for a single animal
cilla <- buffalo[[1]]

# Calculate variogram
SVF <- variogram(cilla)

# Plot the variogram
plot(SVF)

Run the code above in your browser using DataLab