diamond.labels {diamonds}R Documentation

Labels for a diamond partition

Description

Creates a vector of character labels for diamonds in a partition.

Usage

  diamond.labels (d)

Arguments

d depth of recursion of partition; if d=1, then no partition

Details

The labels are generated from a quadrant-recursive ordering, see reference.

Value

A vector of character labels for each diamond in the partition.

Author(s)

Denis White, white.denis@epa.gov

References

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.

See Also

diamond.hierwalk, diamond.randlabels

Examples

  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)

[Package diamonds version 1.0-4 Index]