decorateWithExons {AllelicImbalance} | R Documentation

## decorateWithExons

### Description

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

### Usage

    decorateWithExons(x, exonsInRegion, xlim, ylim, chromosome)

### Arguments

`x` | `ASEset` object
`exonsInRegion` | `GRanges` object with generegions. Can be obtained using `getExonsFromAnnotation`. Must contain a column 'tx_name'
`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

`decorateWithExons` returns nothing, but draws genes

### Author(s)

Jesper R. Gadin, Lasse Folkersen

### See Also

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

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

### Examples

      data(ASEset)

[Package AllelicImbalance version 1.25.2 Index]