# NOT RUN {
require(fields)
require(rioja)
data(arctic.env)
data(arctic.pollen)
# }
# NOT RUN {
# }
# NOT RUN {
#using just the first 100 sites so code runs in an reasonable time, but still slow
arctic.d <- rdist.earth(arctic.env[1:100,c("Longitude","Latitude")], miles = FALSE)
arctic.rne <- rne(y = arctic.pollen[1:100,], env = arctic.env$tjul[1:100],
geodist = arctic.d, fun = MAT, neighbours = c(0,50,200),
subsets = c(1,.5,.1), k = 5)
plot(arctic.rne)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab