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

Description Usage Arguments Value Author(s) See Also Examples

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

1
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

1
2
3
4
5
6
# 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)


Search within the PopGenReport package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.