decorateWithGenes {AllelicImbalance} | R Documentation

## decorateWithGenes

### Description

Internal function that can draw gene regions on pre-specified surfaces. Necessary for the genomic-location plots.

### Usage

    decorateWithGenes(x, genesInRegion, xlim, ylim, chromosome)

### Arguments

`x` | `ASEset` object
`genesInRegion` | `GRanges` object with gene regions. Can be obtained using `getGenesFromAnnotation`
`xlim` | xlim values for the pre-specified surface
`ylim` | ylim values for the pre-specified surface
`chromosome` | character

### Details

The main intention of this function is to be used when plotting several bar plots in the same window. This function add gene regions under the bars.

### Value

`decorateWithGenes` returns nothing, but draws genes

### Author(s)

Jesper R. Gadin, Lasse Folkersen

### See Also

- The `locationplot` which is uses this function internally.

- The `decorateWithExons` which is another similar function that `locationplot` uses internally.

### Examples

      data(ASEset)

[Package AllelicImbalance version 1.18.0 Index]