gene.plot {DOQTL} | R Documentation

## gene.plot

### Description

Given a genomic region, plot the genes in the interval. line.up.genes and resolve.collisions are internal functions.

### Usage

      gene.plot(mgi, rect.col = "grey30", text.col = "black", ...)

### Arguments

`mgi` | Data.frame with MGI gene locations as returned by `get.mgi.features{get.mgi.features}`.
`rect.col` | Color vector that is the color to use to plot gene rectangles. May be a single color for all genes or a vector with colors for each gene. Default = "grey30".
`text.col` | Color vector that is the color to use to plot gene names. May be a single color for all genes or a vector with colors for each gene. Default = "black".
`...` | Other arguments to be passed into plot.

### Details

The spacing algorithm attempts to organize the genes in such a way that they do not collide. The rect.col and text.col arguments are recycled if they are shorter than the number of genes. They can be used to highlight specific genes.

### Value

Data.frame with gene locations and symbols.

### Author(s)

Daniel Gatti

### See Also

`get.mgi.features{get.mgi.features}`

### Examples

      ## Not run:
      data(example.genes)
      g = gene.plot(mgi = example.genes)

    ## End(Not run)

[Package DOQTL version 1.19.0 Index]