CorDdPlot: Plot the relation between genetic differentiation (Delta D)...

Description Usage Arguments Value Author(s) References Examples

View source: R/CorDdPlot.R

Description

This function plots the linear regression of genetic differentiation (Delta D) against geographic distance.

Usage

1
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.

Author(s)

qinxinghu@gmail.com

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.

Examples

1
2
3
4
# example genepop file
#f <- system.file('extdata',package='HierDpart')
#infile <- file.path(f, "Island.gen")
#CorDdPlot(infile,d=NULL,ncode=3)

HierDpart documentation built on March 31, 2021, 5:09 p.m.