plotdiff1: Plot genetic differentiation (Delta D) across loci

Description Usage Arguments Details Author(s) References See Also Examples

View source: R/plotdiff1.R

Description

Plot genetic differentiation (Delta D, Gaggiotti OE, et al, 2018) across loci.

Usage

1
plotdiff1(x, ncode)

Arguments

x

Genetic data, should be genepop format

ncode

The coding type of your genetic data.

Details

Function generates two genetic differentiation (Delta D) plots, a box plot and a scatter plot

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.

See Also

DeltaDcorplot

Examples

1
2
3
4
5
##plot genetic differentiation across loci
# example genepop file
f <- system.file('extdata',package='HierDpart')
infile <- file.path(f, "Island.gen")
plotdiff1(infile,ncode=3)

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