geneUsage: Graphical output of gene usage in given population

Description Usage Arguments Details Value Examples

View source: R/geneUsage.R

Description

The geneUsage function generates a graphical output of the gene usage in a given population.

Usage

1
2
3
4
5
6
geneUsage(
  gene_segment,
  chain = c("IGH", "IGK", "IGL"),
  plot_style = c("base", "ggplot", "plotly"),
  genePlotOrder = c("D", "J", "V")
)

Arguments

gene_segment

a data frame of gene usage in a given population. See details.

chain

the IG chain: IGH,IGK,IGL. Default is IGH.

Details

A data.frame with the following columns.

Value

An interactive stacked barplot visualization of the allele hetrouzygousity in a given population.

Examples

1
2
3
4
5
6
7
8
 gene_segment <- data.frame(GENE = c("V1-2",'V3-3','D2-8','D3-16','J4','J6'), FREQ = rep("0.2,0.1,0.2,0.4,0.5,0.6,0.7",6))
 # plotting with base R boxplot
 p <- geneUsage(gene_segment, plot_style = "base")
 cowplot::ggdraw(p)
 # plotting with ggplot
 p <- geneUsage(gene_segment, plot_style = "ggplot")
 # plotting with plotly
 p <- geneUsage(gene_segment, plot_style = "plotly")

williamdlees/vdjbasevis documentation built on Sept. 13, 2020, 12:17 a.m.