Description Usage Arguments Details Value Author(s) Examples
Add rectangles on Hilbert curve
1 2 3 4 |
object |
A |
ir |
an |
x1 |
if start positions are not integers, they can be set by |
x2 |
if end positions are not integers, they can be set by |
gp |
graphic parameters for rectangles. It should be specified by |
mean_mode |
when a segment in the curve can not be overlapped with intervals in |
Rectangles are put if a segment in the Hilbert curve overlaps with the input intervals. You cannot set the width or height of the rectangles. It is always fixed (actually it is a square).
It can be thought as the low-resolution version of hc_layer,HilbertCurve-method
.
A data frame which contains coordinates (in the 2D space) of rectangles.
Zuguang Gu <z.gu@dkfz.de>
1 2 3 4 5 6 7 | hc = HilbertCurve(1, 100, level = 4, reference = TRUE)
x = sort(sample(100, 20))
s = x[1:10*2 - 1]
e = x[1:10*2]
ir = IRanges(s, e)
hc_rect(hc, ir)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.