Description Usage Arguments Value Author(s) Examples
Add line segments to Hilbert curve
1 2 3 | ## S4 method for signature 'HilbertCurve'
hc_segments(object, ir, x1 = NULL, x2 = NULL,
gp = gpar(lty = 1, lwd = 1, col = 1))
|
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 lines. It should be specified by |
A data frame which contains coordinates (in the 2D space) of segments.
Zuguang Gu <z.gu@dkfz.de>
1 2 3 4 5 6 7 8 | 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_segments(hc, ir)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.