| diamond.labels {diamonds} | R Documentation |
Creates a vector of character labels for diamonds in a partition.
diamond.labels (d)
d |
depth of recursion of partition; if d=1,
then no partition |
The labels are generated from a quadrant-recursive ordering, see reference.
A vector of character labels for each diamond in the partition.
Denis White, white.denis@epa.gov
White, D., (2000) Global grids from recursive diamond subdivisions of the surface of an octahedron or icosahedron, Environmental Monitoring and Assessment, 64(1), 93-103.
diamond.hierwalk,
diamond.randlabels
base <- diamond.base ()
diamond.plot (diamond.edges (base, 1))
lines (diamond.edges (base, 4), lwd=1, col="blue")
lines (diamond.edges (base, 1), lwd=2, col="black")
text (diamond.centers (base, 4), diamond.labels (4))
title ("Morton/Peano Numbers at Level 4", line=0)