wassermann
or lgrMMRR
to test for the significance of a layer on the genetic structure.
genleastcost(cats, fric.raster, gen.distance, NN=NULL, pathtype="leastcost", plotpath=TRUE,theta=1)
gdistance
package. Available distances are 'leastcost', 'commute' or 'rSPDistance'. See functions in the gdistance package for futher explanations. If the path type is set to 'leastcost' then paths and also pathlength are returned.rSPDistance
in package gdistance
.Landguth, E. L., Cushman, S. A., Schwartz, M. K., McKelvey, K. S., Murphy, M. and Luikart, G. (2010). Quantifying the lag time to detect barriers in landscape genetics. Molecular ecology, 4179-4191.
Wasserman, T. N., Cushman, S. A., Schwartz, M. K. and Wallin, D. O. (2010). Spatial scaling and multi-model inference in landscape genetics: Martes americana in northern Idaho. Landscape Ecology, 25(10), 1601-1612.
landgenreport
, popgenreport
, wassermann
, lgrMMRR
## Not run:
# glc <- genleastcost(cats=landgen, fric.raster, "D", NN=8)
# wassermann(eucl.mat = glc$eucl.mat, cost.mat = glc$cost.mats, gen.mat = glc$gen.mat)
# lgrMMRR(gen.mat = glc$gen.mat, cost.mats = glc$cost.mats, eucl.mat = glc$eucl.mat)
# ## End(Not run)
Run the code above in your browser using DataLab