Learn R Programming

AllelicImbalance (version 1.10.2)

annotationBarplot: add annotation to AllelicImbalance barplot

Description

adds a customizable annotation functionality for AllelicImbalance barplots.

Usage

annotationBarplot(strand, snp, lowerLeftCorner, annDfPlus, annDfMinus, cex = 0.7, ypos = 0, interspace = 1)

Arguments

strand
strand, "+", "-", "*" or "both"
snp
integer for the described snp
lowerLeftCorner
position of the plot to add legend to (default c(0,0))
annDfPlus
annotation dataframe plus strand
annDfMinus
annotation dataframe minus strand
cex
size of annotation text
ypos
relative y-axis position for the annotation text
interspace
space between each annotation block

Details

the function is preferably called from within the AllelicImbalance barplot method.

Examples

Run this code

#code placeholders
#< create a barplot without annotation >
#< add annotation >
 

Run the code above in your browser using DataLab