diamond.hierwalk {diamonds}R Documentation

Coordinates of hierarchical walk

Description

Creates x and y coordinates of paths connecting centers, in hierarchical order, of a diamond partition, suitable for lines.

Usage

  diamond.hierwalk (b, d)

Arguments

b list of coordinates of vertices of a diamond, as from diamond.base
d depth of recursion of partition; if d=1, then no partition

Details

The walk connects diamonds in the partition in the order of the labels generated by diamond.labels. That is, the walk describes the Morton or Peano sequence of traverse across the partition.

Value

List with x and y components.

Author(s)

Denis White, white.denis@epa.gov

See Also

diamond.labels, diamond.randwalk

Examples

  base <- diamond.base ()
  diamond.plot (diamond.edges (base, 1))
  points (diamond.centers (base, 4), pch=19, col="red")
  lines (diamond.hierwalk (base, 4), lwd=1, col="blue")
  lines (diamond.edges (base, 1), lwd=2, col="black")
  title ("Hierarchical Walk at Level 4", line=0)

[Package diamonds version 1.0-4 Index]