Learn R Programming

PopGenReport (version 3.1)

allele.dist: 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)

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.

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.

Author

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

See Also

popgenreport

Examples

Run this code
if (FALSE) {
 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)
}

Run the code above in your browser using DataLab