legendBarplot {AllelicImbalance} | R Documentation |
adds a very customizable legend function for AllelicImbalance barplots.
legendBarplot( lowerLeftCorner, size, rownames, colnames, boxsize = 1, boxspace = 1, fgCol, bgCol, ylegendPos = 1, xlegendPos = 0.96, cex = 1 )
lowerLeftCorner |
position of the plot to add legend to (default c(0,0)) |
size |
scale the plot, default is 1 |
rownames |
rownames in legend |
colnames |
colnames in legend |
boxsize |
size of each box fill |
boxspace |
space inbetween the box fill |
fgCol |
color for allele1 |
bgCol |
color for allele2 |
ylegendPos |
placement of the legend within the plot for y |
xlegendPos |
placement of the legend within the plot for x |
cex |
size of legend text |
the function is preferably called from within the AllelicImbalance barplot method.
Jesper R. Gadin
#code placeholders #< create a barplot with legend > #< add legend >