| diamond.triedges {diamonds} | R Documentation |
Creates x and y coordinates of bisecting edges of
diamonds in partition, providing for two equilateral triangles,
with output suitable for lines.
diamond.triedges (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 |
Both this function and diamond.edges are necessary
to show triangle partitions. See example.
List with x and y components.
Denis White, white.denis@epa.gov
base <- diamond.base ()
diamond.plot (diamond.edges (base, 1))
lines (diamond.edges (base, 4))
lines (diamond.triedges (base, 4))
title ("Triangles at Level 4", line=0)