allele_distribution: Geographic distribution of alleles

Description Usage Arguments Value

View source: R/popgen.R

Description

allele_distribution uses the ggplot2 package to plot the global distribution of an allele of interest.

Usage

1
2
allele_distribution(locus = "top-2", variant = 797, location = NA,
  colors = c("purple", "salmon"), alpha = 0.8)

Arguments

locus

A gene or position. Examples: top-2, II:14425175, or "WBGene00010785"

variant

character value corresponding amino acid change you are interested in plotting. Currently only supports visualization of SNVs that alter an amino acid residue.

location

region to restrict plot to. Uses google api for lookup. Examples: europe.

colors

character vector containing two colors. The first element of the vector will be the ALT genotype and the second will be the REF genotype. Default values are c("purple","salmon").

alpha

Set marker alpha.

Value

Outputs a ggplot object containing a visualization of the global distribution of allele of interest


AndersenLab/cegwas documentation built on March 6, 2020, 1:10 a.m.