Learn R Programming

dartR (version 1.1.11)

gl.report.heterozygosity: Reports hetrozygosity

Description

Calculates the observed heterozygisities by population from a genlight object and plots as a barchart ordered on heterozygosity.

Usage

gl.report.heterozygosity(gl)

Arguments

gl

-- a genlight object containing the SNP genotypes [Required]

Value

a dataframe containing population labels, observed heterozygosities and sample sizes

Details

#Input is a genlight adegenet object containing SNP genotypes (0 homozygous for reference SNP, #1 heterozygous, 2 homozygous for alternate SNP).

Examples

Run this code
# NOT RUN {
gl.report.heterozygosity(testset.gl)
# }

Run the code above in your browser using DataLab