Learn R Programming

PopGenReport (version 1.01)

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)

Arguments

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.

See Also

popgenreport

Examples

Run this code
data(bilby)
 #here we use only the first 50 individuals to speep up the example
 popgenreport(bilby[1:50,1:12], 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