gene.plot: gene.plot

Description Usage Arguments Details Value Author(s) See Also Examples

Description

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

Usage

1
  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

1
2
3
4
5
  ## Not run: 
  data(example.genes)
  g = gene.plot(mgi = example.genes)
  
## End(Not run)

DOQTL documentation built on May 6, 2019, 3:09 a.m.