hc_rect-GenomicHilbertCurve-method.Rd
Add rectangles on Hilbert curve
a GenomicHilbertCurve-class
object
a GRanges
object which contains the genomic regions to be mapped to the curve
pass to hc_rect,HilbertCurve-method
pass to hc_rect,HilbertCurve-method
It is basically a wrapper of hc_rect,HilbertCurve-method
.
Refer to hc_rect,HilbertCurve-method
require(circlize)
require(GenomicRanges)
bed = generateRandomBed(nr = 100)
gr = GRanges(seqnames = bed[[1]], ranges = IRanges(bed[[2]], bed[[3]]))
hc = GenomicHilbertCurve()
hc_rect(hc, gr, gp = gpar(fill = rand_color(length(gr))))