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.
● Data Source:
CranContrib
● Keywords: manip
● Alias: ternary.grid
●
0 images
|
The package can project between unity-summed ternary vectors and binary vectors. An "apply" function is provided to apply a function over a ternary field, as is a function for constructing ternary grids. Some rudimentary plotting functions are also provided. This is quick and dirty research code I needed in the course of writing a manuscript. Take it as such.
● Data Source:
CranContrib
● Keywords: package
● Alias: trifield, trifield-package
●
0 images
|
Plots a legend giving the directions of the ternary axes and labels
● Data Source:
CranContrib
● Keywords: hplot
● Alias: ternary.legend
●
0 images
|
Given a matrix of ternary values, this function will compute their x , y coordinates.
● Data Source:
CranContrib
● Keywords: manip
● Alias: abc2xy
●
0 images
|
Draws lines separating adjacent halves of the equilateral triangle with unit altitude
● Data Source:
CranContrib
● Keywords: hplot
● Alias: triaxes
●
0 images
|
A simple wrapper around image and contour for plotting ternary fields
● Data Source:
CranContrib
● Keywords: hplot
● Alias: plot.trifield
●
0 images
|
Given 1) a ternary grid and 2) a function that takes a ternary value as its first argument, this function returns a vector formed by applying the function to each point in the grid.
● Data Source:
CranContrib
● Keywords: manip
● Alias: ternary.apply
●
0 images
|
Constructs a trifield object, suitable for use with image and contour from a ternary grid
● Data Source:
CranContrib
● Keywords: manip
● Alias: ternary.field
●
0 images
|
Like the box graphics function, this function draws a "box" around a ternary plot
● Data Source:
CranContrib
● Keywords: hplot
● Alias: tribox
●
0 images
|
Projects x , y coordinates on the unit square to a , b , c ternary ordinates
● Data Source:
CranContrib
● Keywords: manip
● Alias: xy2abc
●
0 images
|