legendBarplot: add legend to AllelicImbalance barplot

Description Usage Arguments Details Author(s) Examples

View source: R/auxillary-functions-visuals.R

Description

adds a very customizable legend function for AllelicImbalance barplots.

Usage

 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
)

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

1
2
3
4
#code placeholders
#< create a barplot with legend >
#< add legend >
 

AllelicImbalance documentation built on Nov. 8, 2020, 6:52 p.m.