Learn R Programming

rphast (version 1.1)

wig.track: Create a wig track...

Description

Create a wig track

Usage

wig.track(coord, score, name, short.label=NULL, col="black", ylim=NULL,
    smooth=FALSE, numpoints=250, horiz.line=NULL, horiz.lty=2,
    horiz.col="black")

Arguments

coord
A numeric vector of coordinates (to be used for x-axis)
score
A numeric vector of scores (y-axis coords), should be same length as coord
name
The name of the track (a character string)
short.label
An optional character string to be displayed in left hand margin of track
col
The color to be used to plot this track.
ylim
The limits to be used on the y-axis. If NULL use entire range of score.
smooth
A logical value indicating whether to perform smoothing when plotting this track
numpoints
(Only used if smooth==TRUE). An integer value indicating how many points to display in the smoothed wig.
horiz.line
If non-NULL, draw horizontal lines on the display at the given y coordinates
horiz.lty
If horiz.line is defined, use this line type.
horiz.col
If horiz.line is defined, use this color

Value

  • An object of type track which can be plotted with the plot.track function