hc_segments-HilbertCurve-method | R Documentation |
Add line segments to Hilbert curve
## S4 method for signature 'HilbertCurve'
hc_segments(object, ir = NULL, 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>
hc = HilbertCurve(1, 100, level = 4, reference = TRUE)
x = sort(sample(100, 20))
s = x[1:10*2 - 1]
e = x[1:10*2]
require(IRanges)
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.