hc_layer-GenomicHilbertCurve-method.Rd
Add a new layer to the Hilbert curve
a GenomicHilbertCurve-class
object
a GRanges
object which contains the genomic regions to be mapped to the curve
a scalar or a vector of colors which correspond to regions in gr
, pass to hc_layer,HilbertCurve-method
a scalar or a vector of colors which correspond to the borders of regions. Set it to NA
if borders are suppressed.
Under 'pixel' mode, each pixel represents a small window. This argument provides methods to summarize value for the small window if the input genomic regions can not completely overlap with the window, pass to hc_layer,HilbertCurve-method
whether add grid lines to show blocks of the Hilber curve, pass to hc_layer,HilbertCurve-method
color for the grid lines, pass to hc_layer,HilbertCurve-method
a self-defined function which defines how to overlay new layer to the plot, pass to hc_layer,HilbertCurve-method
It is basically a wrapper of hc_layer,HilbertCurve-method
.
Refer to hc_layer,HilbertCurve-method
require(circlize)
require(GenomicRanges)
bed = generateRandomBed()
gr = GRanges(seqnames = bed[[1]], ranges = IRanges(bed[[2]], bed[[3]]))
hc = GenomicHilbertCurve(mode = "pixel", level = 9)
hc_layer(hc, gr, col = rand_color(length(gr)))