Learn R Programming

HilbertVis (version 1.30.0)

plotHilbertCurve: Plotting the Hilbert curve (for demonstation purposes).

Description

This function plots the Hilbert curve fractal at a chosen iteration level in order to give you an impression how it looks like.

Usage

plotHilbertCurve( lv, new.page = TRUE )

Arguments

lv
The iteration level. A Hilbert curve of level lv spans a square with side length 2^lv (coordinates ranging from 0 to 2^lv-1) and has 4^lv points. Values lv > 7 will take very long and yield a cluttered mesh of indistuingishable lines.
new.page
Boolean indicating whether to start a new graphics page (default: yes).

Value

See Also

hilbertCurve

Examples

Run this code
   plotHilbertCurve( 3 )

Run the code above in your browser using DataLab