plotdiff1: Plot genetic differentiation (Delta D) across loci

View source: R/plotdiff1.R

plotdiff1R Documentation

Plot genetic differentiation (Delta D) across loci

Description

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

Usage

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

Qin, X., & Gaggiotti, O. E. (2022). Information-based summary statistics for spatial genetic structure inference. Molecular Ecology Resources, 22(6), 2183-2195.

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

##plot genetic differentiation across loci
# example genepop file
f1 <- function(f) system.file("extdata", f,package="HierDpart")
plotdiff1(f1("Island.gen"),ncode=3)

xinghuq/HierDpart documentation built on March 21, 2023, 6:43 p.m.