bb_plotSignal.Rd
plots signal track data
bb_plotSignal( signal, chrom, params = NULL, chromstart = NULL, chromend = NULL, range = NULL, linecolor = "grey", binSize = NA, binCap = TRUE, fillcolor = NULL, assembly = "hg19", ymax = 1, scale = FALSE, width = NULL, height = NULL, x = NULL, y = NULL, just = c("left", "top"), default.units = "inches", draw = TRUE, ... )
signal | signal track data to be plotted (bigwig file, bed format dataframe, or GRanges with "counts" metadata); can be one or a list of two |
---|---|
chrom | chromosome of region to be plotted as a string (i.e. "chr3") |
params | an optional "bb_params" object space containing relevant function parameters |
chromstart | start position |
chromend | end position |
range | y-range to plot (c(min, max)) |
linecolor | color(s) of line outlining signal track(s); if using fillcolor and no outline is desired, set to NA |
binSize | the length of each bin in bp |
binCap | TRUE/FALSE whether the function will limit the number of bins to 8,000 |
fillcolor | color(s) filling in signal track(s) |
assembly | desired genome assembly |
ymax | fraction of max y-value to set as height of plot |
scale | A logical value indicating whether to include a data scale label in the top left corner |
width | A numeric or unit object specifying width |
height | A numeric or unit object specifying height |
x | A numeric or unit object specifying x-location |
y | A numeric or unit object specifying y-location |
just | a string or numeric vector specifying the justification of the viewport relative to its (x, y) location: "left", "right", "centre", "center", "bottom", "top" |
default.units | A string indicating the default units to use if x, y, width, or height are only given as numerics |
draw | A logical value indicating whether graphics output should be produced |