Create a wig track
as.track.wig(wig = NULL, name, coord = NULL, score = NULL,
short.label = NULL, col = "black", ylim = NULL, smooth = FALSE,
numpoints = 250, horiz.line = NULL, horiz.lty = 2,
horiz.col = "black")
A "wig" object (Must have elements wig$coord and wig$score which should both be numeric vectors). coord/score may be passed directly instead.
The name of the track (a character string)
(Alternative to wig) A numeric vector of coordinates (to be used for x-axis)
(Alternative to wig) A numeric vector of scores (y-axis coords), should be same length as coord.
An optional character string to be displayed in left hand margin of track
The color to be used to plot this track.
The limits to be used on the y-axis. If NULL use entire range of score.
A logical value indicating whether to perform smoothing when plotting this track
(Only used if smooth==TRUE
). An integer value indicating how many
points to display in the smoothed wig.
If non-NULL, draw horizontal lines on the display at the given y coordinates
If horiz.line is defined, use this line type.
If horiz.line is defined, use this color
An object of type track
which can be plotted with the plot.track
function