HilbertCurve-class {HilbertCurve} | R Documentation

## The HilbertCurve class

### Description

The HilbertCurve class

### Details

Hilbert curve (https://en.wikipedia.org/wiki/Hilbert_curve ) is a type of space-filling curves that folds one-dimensional axis into a two-dimensional space, but still keeps the locality. It has advantages to visualize data with long axis with high resolution.

This package aims to provide an easy and flexible way to visualize data through Hilbert curve. The implementation and example figures are based on following sources:

- http://mkweb.bcgsc.ca/hilbert/

- http://corte.si/posts/code/hilbert/portrait/index.html

- http://bioconductor.org/packages/devel/bioc/html/HilbertVis.html

### Methods

The `HilbertCurve-class` provides following methods:

- `HilbertCurve`: constructor method;

- `hc_points,HilbertCurve-method`: add points;

- `hc_segments,HilbertCurve-method`: add lines;

- `hc_rect,HilbertCurve-method`: add rectangles;

- `hc_polygon,HilbertCurve-method`: add polygons;

- `hc_text,HilbertCurve-method`: add text;

- `hc_layer,HilbertCurve-method`: add layers, works under "pixel" mode;

- `hc_png,HilbertCurve-method`: save plot as PNG format, works under "pixel" mode.

### Author(s)

Zuguang Gu <z.gu@dkfz.de>

### See Also

The `GenomicHilbertCurve-class` inherits `HilbertCurve-class` and is designed specifically for handling genomic data.

### Examples

    NULL

[Package HilbertCurve version 1.22.0 Index]