Learn R Programming

rphast (version 1.6.9)

as.track.wig: Create a wig track

Description

Create a wig track

Usage

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")

Arguments

wig

A "wig" object (Must have elements wig$coord and wig$score which should both be numeric vectors). coord/score may be passed directly instead.

name

The name of the track (a character string)

coord

(Alternative to wig) A numeric vector of coordinates (to be used for x-axis)

score

(Alternative to wig) A numeric vector of scores (y-axis coords), should be same length as coord.

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