powered by
## S3 method for class 'HilbertCurve': hc_png(object, file = "HilbertCurve.png")
HilbertCurve-class
.png
2^level x 2^level
Only the body of the Hilbert curve will be written to PNG file.
This function only works under 'pixel' mode.
hc = HilbertCurve(1, 100, level = 9, mode = "pixel") x = sort(sample(100, 20)) s = x[1:10*2 - 1] e = x[1:10*2] ir = IRanges(s, e) hc_layer(hc, ir) hc_png(hc, file = "test.png")
Run the code above in your browser using DataLab