Learn R Programming

hexDensity (version 1.4.8)

meanderingTriangles: Meandering triangles for hexagonal grid in C++

Description

Meandering triangles for hexagonal grid in C++

Usage

meanderingTriangles(x.coords.left, x.coords.right, y.coords, z, levels)

Value

list of x, y, and ID, for the contour line at each levels.

Arguments

x.coords.left

Vector for x coords of left-aligned rows (row 1,3,5,...)

x.coords.right

Vector for x coords of right-aligned rows (row 2,4,6,...)

y.coords

Vector for y coords of all rows.

z

Matrix for elevation values for the grid point

levels

Vector of z value cutoffs for contouring.

Details

This function is not meant to be used as is, unless you are very familiar with how hexContour works.

References

Hill, B. (2017) Meandering triangles. Naming Things. https://blog.bruce-hill.com/meandering-triangles