powered by
Calculates the observed heterozygisities by population from a genlight object and plots as a barchart ordered on heterozygosity.
gl.report.heterozygosity(gl)
-- a genlight object containing the SNP genotypes [Required]
a dataframe containing population labels, observed heterozygosities and sample sizes
#Input is a genlight adegenet object containing SNP genotypes (0 homozygous for reference SNP, #1 heterozygous, 2 homozygous for alternate SNP).
# NOT RUN { gl.report.heterozygosity(testset.gl) # }
Run the code above in your browser using DataLab