Learn R Programming

HierDpart (version 1.5.0)

plotdiff1: 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

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

Run this code
# NOT RUN {
##plot genetic differentiation across loci
# example genepop file
f <- system.file('extdata',package='HierDpart')
infile <- file.path(f, "Island.gen")
plotdiff1(infile,ncode=3)
# }

Run the code above in your browser using DataLab