plotBw
¶
plot bigWig (a.k.a. bedGraph-style) data
Description¶
plot bigWig (a.k.a. bedGraph-style) data
Usage¶
plotBw(x, y, y0 = NULL, y1 = NULL, col = "black", alpha = 0.2,
add = FALSE, xlim = NULL, chrom = NULL, ylab = "Generations",
xlab = "Coordinate", ylim = NULL, fill = FALSE, fillBottom = 0,
chromLabel = TRUE, chromBreakLty = 3, xaxt = "s", ...)
Arguments¶
Argument |
Description |
---|---|
|
a data frame with at least three columns with names chrom, chromStart, chromEnd |
|
a numeric vector whose length=nrow(x) giving one score per region represented in x |
|
A lower limit to y (should be numeric vector, same length as x and y) |
|
An upper limit to y (same format as y0; must be provided if y0 is provided) |
|
The color of the line to draw |
|
Transparency factor (0 = transparent, 1 = solid) |
|
If TRUE, add to current plot |
|
The x-axis limits |
|
If given plot only elements of x for each x$chrom==chrom |
|
label for y-axis |
|
label for x-axis |
|
limits for y-axis. If not given will use range(y) |
|
if TRUE, fill in area under curve from y to y-coordinate designated by fillBottom |
|
if fill is TRUE, fill area |
|
if TRUE and multiple chromosomes are being plotted, print chrom names on x-axis |
|
If multiple chromosomes plotted, this line type used in vertical lines dividing them |
|
Other arguments to be passed to plot functions |
Value¶
Invisibly returns the x-coordinates of the center of each chromosome plotted
If y0 and y1 are given, then will shade in regions between y0 and y1 in the same color as the line drawn, but made transparent by factor “alpha’ #TODO: have it take an optional low/high value, as well as optional alpha