Description Usage Arguments Details Value Examples
The geneUsage
function generates a graphical output of the gene usage in a given population.
1 2 3 4 5 6 |
gene_segment |
a data frame of gene usage in a given population. See details. |
chain |
the IG chain: IGH,IGK,IGL. Default is IGH. |
A data.frame
with the following columns.
'GENE'
: The gene call
'FREQ'
: Gene usage of each individual, comma delimited.
An interactive stacked barplot visualization of the allele hetrouzygousity in a given population.
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.