allele.dist: Counts and visualises allele frequencies across loci and...

View source: R/allele.dist.r

allele.distR Documentation

Counts and visualises allele frequencies across loci and subpopulations

Description

Counts the number of observations for each combination of allele variant and subpopulation for each locus. Calculates relative allele proportions for each subpopulations and then produces a heatmap using that data.

Usage

allele.dist(population, mk.figures = TRUE)

Arguments

population

this is the genind object the analysis will be based on

mk.figures

if set to FALSE no figures are plotted. Default is TRUE.

Value

Produces heatmaps of the relative allele frequencies for each subpopulation at each locus and returns a list containing the counts (count) for each combination of allele and subpopulation and the relative frequencies of alleles by subpopulation (frequency) for each locus. The color bars on the heatmaps shows the relative frequency of an allele within a subpopulation for a locus while the histogram gives an overall count for the number of combinations of allele and subpopulation with a relative frequency.

Author(s)

Aaron Adamack, aaron.adamack@canberra.edu.au

See Also

popgenreport

Examples

## Not run: 
 data(bilby)
 #here we use only the first 50 individuals to speep up the example
 popgenreport(bilby, mk.allele.dist=TRUE, mk.pdf=FALSE)
 
#to get a pdf output you need to have a running Latex version installed on your system.
popgenreport(bilby, mk.allele.dist=TRUE, mk.pdf=TRUE)

## End(Not run)

PopGenReport documentation built on Oct. 11, 2023, 9:07 a.m.