legendBarplot {AllelicImbalance} | R Documentation

## add legend to AllelicImbalance barplot

### Description

adds a very customizable legend function for AllelicImbalance barplots.

### Usage

    legendBarplot(
      lowerLeftCorner,
      size,
      rownames,
      colnames,
      boxsize = 1,
      boxspace = 1,
      fgCol,
      bgCol,
      ylegendPos = 1,
      xlegendPos = 0.96,
      cex = 1
    )

### Arguments

`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

### Details

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

### Author(s)

Jesper R. Gadin

### Examples

    #code placeholders
    #< create a barplot with legend >
    #< add legend >

[Package AllelicImbalance version 1.25.2 Index]