Rgb (version 1.5.1)

draw.hist:

Description

This function draws a slice of a track content, with a distinct vertical bar for each track element.

Usage

draw.hist(slice, start, end, column = "value", colorVal = "#666666",
    colorFun = function() NULL, border = "#666666", cex.lab = 1, origin = 0,
    bty = "o", ...)

Arguments

slice
A data.frame holding the data to plot, with elements in rows and data in columns.
start
Single integer value, the left boundary of the window, in base pairs.
end
Single integer value, the right boundary of the window, in base pairs.
column
Single character value, the name of the slice column to use for bar heights.
colorVal
The color to fill bars with (as a name, an integer or an hexadecimal character description).
colorFun
A function with no arguments, which returns a vector of as many colors than the slice has rows. It can make use of any argument described on this page (including custom arguments passed via "..."), as its enclosing environment is redefined to the calling one. colorVal must be NA for the function to be used.
border
The color to fill boxe borders with (as a name, an integer or an hexadecimal character description).
cex.lab
The relative character size of x and y axis labels (default: 1). See par.
origin
Single numeric value, the Y value of the horizontal side common to all boxes. Can also be the name of a slice numeric column to use as a segment-specific origin.
bty
A character string which determined the type of box which is drawn about plots. If bty is one of "o" (the default), "l", "7", "c", "u", or "]" the resulting box resembles the corresponding upper case letter. A value of "n" suppresses the box. See par.
Further arguments to be passed to draw.bg.

See Also

draw.bg, draw.boxes, draw.steps, draw.points, draw.pileup, draw.seq