gene.plot | R Documentation |
Given a genomic region, plot the genes in the interval. line.up.genes and resolve.collisions are internal functions.
gene.plot(mgi, rect.col = "grey30", text.col = "black", ...)
mgi |
Data.frame with MGI gene locations as returned by |
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. |
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.
Data.frame with gene locations and symbols.
Daniel Gatti
get.mgi.features{get.mgi.features}
## Not run:
data(example.genes)
g = gene.plot(mgi = example.genes)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.