diamond.randwalk {diamonds} | R Documentation |
Creates x
and y
coordinates of paths connecting
centers, in random hierarchical order, of a diamond partition,
suitable for lines
.
diamond.randwalk (b, d)
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 |
The walk connects diamonds in the partition in the order of the
labels generated by diamond.labels
, except that,
at each hierarchical level, the four elements are randomly permuted.
List with x
and y
components.
Denis White, white.denis@epa.gov
diamond.randlabels
,
diamond.hierwalk
base <- diamond.base () diamond.plot (diamond.edges (base, 1)) points (diamond.centers (base, 4), pch=19, col="red") lines (diamond.randwalk (base, 4), lwd=1, col="blue") lines (diamond.edges (base, 1), lwd=2, col="black") title ("Hierarchical Random Walk at Level 4", line=0)