Description Usage Arguments Details Author(s) Examples
View source: R/auxillary-functions-visuals.R
adds a very customizable legend function for AllelicImbalance barplots.
1 2 3 4 5 6 7 8 9 10 11 12 13 | 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
1 2 3 4 | #code placeholders
#< create a barplot with legend >
#< add legend >
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.