hc_rect-GenomicHilbertCurve-method | R Documentation |
Add rectangles on Hilbert curve
## S4 method for signature 'GenomicHilbertCurve'
hc_rect(object, gr, gp = gpar(fill = "red", col = "red"),
mean_mode = c("w0", "absolute", "weighted", "max_freq"))
object |
a |
gr |
a |
gp |
pass to |
mean_mode |
pass to |
It is basically a wrapper of hc_rect,HilbertCurve-method
.
Refer to hc_rect,HilbertCurve-method
Zuguang Gu <z.gu@dkfz.de>
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))))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.