draw.hist {Rgb}R Documentation

Histogram plot of a track

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", fillColor = "#666666",
    border = "#666666", cex.lab = 1, origin = 0, bty = "o", fg = "#000000",
    ylim = NA, ...)

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.

fillColor

The color to fill vertical bars with (as a name, an integer or an hexadecimal character description). It can alternatively be a function without argument, which returns a vector of as many colors as slice has rows. It can make direct variable call to any argument described on this page (including custom arguments passed via "...").

border

The color to use for box borders (as a name, an integer or an hexadecimal character description). It can alternatively be a function without argument, which returns a vector of as many colors as slice has rows. It can make direct variable call to any argument described on this page (including custom arguments passed via "..."). Special values NA and "fillColor" can also be used to disable borders or use fillColor respectively.

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.

fg

Single character value, defining the color of the foreground (axes, labels...) as an english name or a hexadecimal code. Similar to par's argument but not relying on it.

ylim

Numeric vector of length two, defining the Y axis boundaries. Any or both of them can be NA, meaning the missing boundary will be inferred from the data to plot.

...

Further arguments to be passed to draw.bg.

Author(s)

Sylvain Mareschal

See Also

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


[Package Rgb version 1.7.5 Index]