hc_text-GenomicHilbertCurve-method | R Documentation |
Add text to Hilbert curve
## S4 method for signature 'GenomicHilbertCurve'
hc_text(object, gr, labels, gp = gpar(),
centered_by = c("interval", "polygon"), ...)
object |
a |
gr |
a |
labels |
pass to |
gp |
pass to |
centered_by |
how to define the "center" of the interval represented in Hilbert curve. Pass to |
... |
pass to |
It is basically a wrapper of hc_text,HilbertCurve-method
.
Refer to hc_text,HilbertCurve-method
Zuguang Gu <z.gu@dkfz.de>
require(circlize)
require(GenomicRanges)
bed = generateRandomBed(nr = 20)
gr = GRanges(seqnames = bed[[1]], ranges = IRanges(bed[[2]], bed[[3]]))
hc = GenomicHilbertCurve()
hc_text(hc, gr, labels = sample(letters, nrow(bed), replace = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.