Description Usage Arguments Value
allele_distribution
uses the ggplot2 package to plot the global distribution of an allele of interest.
1 2 | allele_distribution(locus = "top-2", variant = 797, location = NA,
colors = c("purple", "salmon"), alpha = 0.8)
|
locus |
A gene or position. Examples: |
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: |
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. |
Outputs a ggplot object containing a visualization of the global distribution of allele of interest
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.