This repository contains an R script that supplements the preprint "A model of coevolution and local adaptation between hosts and parasites in continuous space" by Bob Week and Gideon Bradburd (2022). More precisely, this script details how one may estimate the interspecific colocated covariance for a pair of coevolving species distributed continuously in a two-dimensional habitat.
The script requires the R package RandomFields
. In turn, to install RandomFields
, the R package devtools
is required, which can be installed with install.packages("devtools")
. With devtools
installed, RandomFields
can be installed with devtools::install_github("https://github.com/cran/RandomFields")
. Feel free to contact Bob Week (owner of this repository) with any questions.