hc_png-HilbertCurve-method | R Documentation |
Save Hilbert curve as a PNG figure
## S4 method for signature 'HilbertCurve'
hc_png(object, file = "HilbertCurve.png")
object |
A |
file |
file name. If the suffix of the file name is not |
A PNG figure with resolution of 2^level x 2^level
is generated.
Only the body of the Hilbert curve will be written to PNG file.
This function only works under 'pixel' mode.
No value is returned.
Zuguang Gu <z.gu@dkfz.de>
hc = HilbertCurve(1, 100, level = 9, mode = "pixel")
x = sort(sample(100, 20))
s = x[1:10*2 - 1]
e = x[1:10*2]
require(IRanges)
ir = IRanges(s, e)
hc_layer(hc, ir)
hc_png(hc, file = "test.png")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.