The function builds a rectangular lattice of points bounded by an equilateral triangle with unit altitude. It can be used with ternary.apply and ternary.field to create a surface of values for plotting.
Usage
ternary.grid(grid.size)
Arguments
grid.size
The number of rows and columns in the grid
Details
The size of the grid is the number of rows and colunn in the rectangular region bounding the ternary plot region. The number of output x, y and corresponding a, b, c points will be less than rows times columns because many x, y points fall outside the ternary region. In all cases, the sum of a, b and c will be unity.