Learn R Programming

DOQTL (version 1.8.0)

gene.plot: 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.

Value

Data.frame with gene locations and symbols.

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.

See Also

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

Examples

Run this code
  ## Not run: 
#   data(example.genes)
#   g = gene.plot(mgi = example.genes)
#   ## End(Not run)

Run the code above in your browser using DataLab