Description Usage Arguments Details Value Author(s) Examples
Add polygons 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. It should be specified by |
end_type |
since two ends of a continuous interval do not necessarily completely overlap with the Hilbert curve segments, this argument controls how to determine the ends of the interval which will be presented on the curve. |
Drawing polygons are quite visually similar as drawing rectangles. The major differences are: 1) for rectangles, colors for the ends of the interval can change if they are not completely covered by the Hilbert curve segments, and 2) polygons can have borders.
Normally polygons are used to mark areas in the Hilbert curve.
No value is returned.
Zuguang Gu <z.gu@dkfz.de>
1 2 3 4 5 6 7 | require(IRanges)
ir = IRanges(10, 40)
hc = HilbertCurve(0, 100, level = 4, reference = TRUE)
hc_segments(hc, ir)
hc_text(hc, x1 = 10:40, labels = 10:40)
hc_polygon(hc, ir, gp = gpar(fill = "#FF000080", col = 1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.