Creates a grid of colored triangles with colors corresponding to the output
of a function.
Usage
ternary_image(f, ...)
# S4 method for function
ternary_image(f, n = 48, palette = NULL, ...)
Value
ternary_image() is called it for its side-effects.
Arguments
f
A function that takes three arguments (x, y and z coordinates)
and returns a numeric vector (see tile_bin(), tile_density(),
tile_interpolate()).
...
Further parameters to be passed to f.
n
A length-one integer vector specifying the maximum number of
tiles on each axis.
palette
A function that takes a single numeric vector
(the output of f) as argument and returns a vector of color.
If NULL, the default color scheme will be used. If FALSE, the output
of f is used as colors.
Author
N. Frerebeau
See Also
Other geometries:
ternary_arrows(),
ternary_crosshairs(),
ternary_labels(),
ternary_lines(),
ternary_points(),
ternary_polygon(),
ternary_segments(),
ternary_text()