sfcurve: 2x2, 3x3 and Nxn Space-Filling Curves

Implementation of all possible forms of 2x2 and 3x3 space-filling curves, i.e., the generalized forms of the Hilbert curve <https://en.wikipedia.org/wiki/Hilbert_curve>, the Peano curve <https://en.wikipedia.org/wiki/Peano_curve> and the Peano curve in the meander type (Figure 5 in <https://eudml.org/doc/141086>). It can generates nxn curves expanded from any specific level-1 units. It also implements the H-curve and the three-dimensional Hilbert curve. See <doi:10.48550/arXiv.2412.16962> for more details.

Package details

AuthorZuguang Gu [aut, cre] (ORCID: <https://orcid.org/0000-0002-7395-8709>)
MaintainerZuguang Gu <guzuguang@suat-sz.edu.cn>
LicenseMIT + file LICENSE
Version1.0.1
URL https://github.com/jokergoo/sfcurve https://jokergoo.github.io/sfcurve/
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("sfcurve")

Try the sfcurve package in your browser

Any scripts or data that you put into this service are public.

sfcurve documentation built on April 10, 2026, 5:06 p.m.