Description Usage Arguments Value Author(s) Examples
Add line segments to Hilbert curve
| 1 2 3 | 
| 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 9 | 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.