hc_points-GenomicHilbertCurve-method | R Documentation |
Add points to the Hilbert curve
## S4 method for signature 'GenomicHilbertCurve'
hc_points(object, gr,
np = max(c(2, 10 - hc_level(object))), size = unit(1, "char"),
pch = 1, gp = gpar(), mean_mode = c("w0", "absolute", "weighted", "max_freq"),
shape = "circle")
object |
a |
gr |
a |
np |
pass to |
size |
size of points when |
pch |
shape of the points when |
gp |
graphic parameters of the points when |
mean_mode |
pass to |
shape |
shape of the points when |
It is basically a wrapper of hc_points,HilbertCurve-method
.
Refer to hc_points,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_points(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.