# Load package and data
library(ctmm)
data(buffalo)
# Calculate a list of variograms for all similar individuals in the dataset
# the 4th buffalo has a different sampling rate
svflist <- lapply( buffalo[-4] , variogram )
# alternatively, we could variogram all at coarsest scale with variogram option dt
# Calculate the average variogram
meansvf <- mean(svflist)
# Plot the mean variogram
plot(meansvf)
Run the code above in your browser using DataLab