CorDdPlot: Plot the relation between genetic differentiation (Delta D) and geographic distance
Description
This function plots the linear regression of genetic differentiation (Delta D) against geographic distance.
Usage
CorDdPlot(x, d, ncode)
Arguments
x
The genetic file, here is ge19900516qxh
nepop format file.
d
Geographic distance.If D is TRUE, you should input the matrix of geographic distance; if no realistic distance,d should be set as NULL, then the default distance will be generated according to the order of the population sequence.
ncode
The type of your coding allele
Value
plot
Return to a linear plot for the relation between genetic differentiation (Delta D) and geographic distance.
lm
Return to details of linear regression between genetic differentiation (Delta D) and geographic distance.
References
Gaggiotti, O. E., Chao, A., Peres-Neto, P., Chiu, C. H., Edwards, C., Fortin, M. J., ... & Selkoe, K. A. (2018). Diversity from genes to ecosystems: A unifying framework to study variation across biological metrics and scales. Evolutionary Applications.
# NOT RUN {# example genepop file#f <- system.file('extdata',package='HierDpart')#infile <- file.path(f, "Island.gen")#CorDdPlot(infile,d=NULL,ncode=3)# }