draw.bg | R Documentation |
This function draws the background for the other track ploting functions.
draw.bg(start, end, ylab = "", ylab.horiz = FALSE, ysub = as.character(NA),
mar = c(0.2, 5, 0.2, 1), xaxt = "s", yaxt = "n", yaxs = "r", ylim = c(0, 1),
cex.lab = 1, cex.axis = 1, mgp = c(3, 1, 0), tck = NA, tcl = -0.5,
xaxp = as.numeric(NA), yaxp = as.numeric(NA), bty = "o", las = 0, xgrid = TRUE,
new = FALSE, bg = NA, bg.inner = NA, fg = "#000000", ...)
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. |
ylab |
The name of the Y axis. See |
ylab.horiz |
Single logical value, whether to print |
ysub |
Similar to |
mar |
A numerical vector of the form "c(bottom, left, top, right)" which gives the number of lines of margin to be specified on the four sides of the plot. See |
xaxt |
Whether to plot an X axis ("s") or not ("n"). See |
yaxt |
Whether to plot an Y axis ("s") or not ("n"). If no Y axis is drawn, |
yaxs |
Y axis style, "r" enlarges the Y limits by 4 percents on each side for a cleaner look, "i" will not. See |
ylim |
The Y axis limits as a numerical vector of the form "c(start, end)" of the plot. Note that start > end is allowed and leads to a "reversed axis". Use "NULL" to guess the axis range from the data. See |
cex.lab |
The relative character size of x and y axis labels (default: 1). See |
cex.axis |
The relative character size of x and y axis annotations (default: 1). See |
mgp |
Length 3 vector defining the distance between the plot area and respectively the Y axis label, Y axis annotations and Y axis line (default: 3, 1, 0). See |
tck |
The length of tick marks as a fraction of the smaller of the width or height of the plot (default: NA, meaning using |
tcl |
The absolute length of a tick marks. Note that positive numbers put them inside the plot area (default: -0.5). See |
xaxp |
Length 3 vector defining the ticks on the X axis : X of first tick, X of last tick and number of intervals between them (default: NA). See |
yaxp |
Length 3 vector defining the ticks on the Y axis : Y of first tick, Y of last tick and number of intervals between them (default: NA). See |
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 |
las |
The direction of both X and Y axis labels: 0 for labels parallel to the axes, 1 for horizontal labels, 2 for labels perpendicular to the axes and 3 for vertical labels. See |
xgrid |
Single logical value, whether to draw a grid on X axis or not. |
new |
Single logical value, whether to plot on top of previous track ( |
bg |
Single character value, defining the color of the background (margins included) as an english name or a hexadecimal code. Similar to |
bg.inner |
Single character value, defining the color of the background (margins excluded) as an english name or a hexadecimal code. |
fg |
Single character value, defining the color of the foreground (axes, labels...) as an english name or a hexadecimal code. Similar to |
... |
Not used, only ignores other arguments. |
Sylvain Mareschal
draw.boxes
, draw.density
, draw.hist
, draw.pileup
, draw.points
, draw.seq
, draw.steps
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.