draw.density {Rgb} | R Documentation |
Two-dimensional density plot of a track
Description
This function is similar to draw.points
, but draws a 2D density plot of the points instead of the points themselves.
Usage
draw.density(slice, start, end, column = "value", cex.lab = 1, bty = "o",
fg = "#000000", pal = grDevices::grey, border = NA, depth = 8, dpi = 7, bw.x = 0.005,
bw.y = 0.2, precision = 1, skewing = 1.75, ...)
Arguments
slice |
A |
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 |
cex.lab |
See |
bty |
See |
fg |
Single character value, defining the color of the foreground (axes, labels...) as an english name or a hexadecimal code. Similar to |
pal |
A function returning a set of colors when provided a set of intensities between 0 and 1 (typically |
border |
The color to use for polygon borders (as a name, an integer or an hexadecimal character description). Special value |
depth |
Single integer value, the amount of different ranges to simplify the density into before plotting (corresponds to the |
dpi |
Single numeric value, the Dots Per Inches resolution of the grid on which |
bw.x |
Single numeric value, the bandwidth to use for density estimation on the X (genomic) axis. Notice this value will be multiplied by the genomic width of the plotted window (in Mbp), to enforce a similar resolution at all zoom levels. |
bw.y |
Single numeric value, the bandiwdth to use for density estimation on the Y axis. It was typically chosen for a Y axis ranging from -1 to 1, wider axes could require wider bandwidths. |
precision |
Single numeric value, providing a simpler way to control the sharpness of the density plot than setting |
skewing |
Single numeric value, defining how the color scale should be skewed toward small values. Higher |
... |
Further arguments to be passed to |
Author(s)
Sylvain Mareschal
See Also
draw.bg
, draw.boxes
, draw.hist
, draw.pileup
, draw.points
, draw.seq
, draw.steps