This function plots a drawable list on all the chromosomes side by side, with a constant X axis scale. It mainly defines a custom layout for a series of browsePlot
calls.
singlePlot(drawables, columns = 4, exclude = c("X", "Y"), add = c(5e6, 15e6),
vertical = FALSE, capWidth = "1 cm", spacer = "1 cm", finalize = TRUE,
cap.border = "black", cap.font.col = "black", cap.bg.col = NA, cap.adj = c(0.5, 0.5),
cap.cex = 2, cap.font = 2, mar = c(0,0,0,0), bty = "n", xaxt = "n", xgrid = FALSE,
yaxt = "n", ylab = "", ysub = "", ...)
A drawable.list
object containing the tracks to plot, as returned by drawable.list
or tk.tracks
.
Single integer value, column count in the chromosome layout.
Character vector, the names of the chromosomes to not plot.
Numeric vector of length 2, the margins to add before and after each chromosome, in base pairs.
Single logical value, whether to produce a plot showing chromosomes horizontally or vertically. Actually the figure will need to be manually rotated in the resulting file.
Single value defining the width of the chromosome name caps, in a suitable format for layout
widths
argument.
Single value defining the height of the inter-chromosome gaps, in a suitable format for layout
heights
argument.
Single logical value, whether to fill unused space with a blank plot and return to default layout or allow further manual addition. If FALSE
, the next plot will fill the whole blank space left.
Single value defining the color of chromosome cap borders. See the border
argument of rect
for further details.
Single value defining the color of chromosome names in the caps. See the font
argument of par
for further details.
Single value defining the color of chromosome cap background. See the col
argument of rect
for further details.
Numeric vector of length 2 defining the X and Y adjustment of the chromosome names in the caps, ranging between 0 (left / bottom) to 1 (right / top).
Single value defining the character expansion factor for chromosome names in the caps. See the cex
argument of par
for further details.
Single value defining the font type of chromosome names in the caps. See the font
argument of par
for further details.
Refer to ... described here-after. To disable the overriding and let each track define its own value as usual, set this parameter to NULL
.
Refer to ... described here-after. To disable the overriding and let each track define its own value as usual, set this parameter to NULL
.
Refer to ... described here-after. To disable the overriding and let each track define its own value as usual, set this parameter to NULL
.
Refer to ... described here-after. To disable the overriding and let each track define its own value as usual, set this parameter to NULL
.
Refer to ... described here-after. To disable the overriding and let each track define its own value as usual, set this parameter to NULL
.
Refer to ... described here-after. To disable the overriding and let each track define its own value as usual, set this parameter to NULL
.
Refer to ... described here-after. To disable the overriding and let each track define its own value as usual, set this parameter to NULL
.
Further arguments will be passed to browsePlot
for each chromosome, which itself will pass it to the draw
method of each track, overriding the class default and object setting.
Sylvain Mareschal
browsePlot
, drawable.list
, drawable