visualizeGene: Provide a graphical visualization of a given gene and its...

Description Usage Arguments Value Examples

View source: R/visualizeGene.R

Description

Draws a gray rectangle on an R plot environment to represent the full length of the gene. x-axis labels are the position numbers of the gene's cDNA. On top of the rectangle, vertical coloured line segments represent positions on which SNPs are found – the degree of redness is a heatmap colour mapping that depicts its relative frequency.

Usage

1

Arguments

gene

An S3 object of class Gene. The gene to be visualized. See ?initializeGene for information on this class' attributes.

Value

Produces an R graphic visualization of the given gene.

Examples

1
2
gene <- initializeGene("Potri.001G345300.1.v3.0", snpPositions)
visualizeGene(gene)

LZhang98/nsSNPHotspotViewer documentation built on Dec. 31, 2020, 2:14 p.m.