plot_gene_arrow: Plot genes on an R wiggle plot

Description Usage Arguments Examples

Description

This function allows you to you to add arrows representing genes to an R wiggle plot.
Written by Tovah Markowitz.

Usage

1
2
plot_gene_arrow(geneEnd, geneLength, orientation, minima = 400,
  color = "black", height = 0.2, yPos = -1)

Arguments

geneEnd

A numeric position on the x-axis of the 3' end of the gene. No default.

geneLength

The length of the gene. No default.

orientation

A value of 1 for genes on the Watson strand or -1 for genes on the Crick strand. No default.

minima

A minimal gene length before the arrow starts turning inside out. Dependent on the range of the x-axis. Default is 400 bp.

color

Define the color of the gene. Default is black.

height

To adjust to the height of the gene bar. Default is 0.2.

yPos

To adjust the position of the gene on the y-axis. Default is -1.

Examples

1
2
3
4
5
## Not run: 
plot_gene_arrow(Red1_end, Red1_end-Red1_start, 1)
plot_gene_arrow(672823, 672823-670340, 1)

## End(Not run)

luisvalesilva/hwglabr documentation built on May 21, 2019, 8:56 a.m.