Creating ternary plots

Functions for plotting straightforward data onto a ternary plot.

TernaryApp()

Graphical user interface for creating ternary plots

TernaryPlot() HorizontalGrid()

Create a ternary plot

AddToTernary() TernaryArrows() TernaryLines() TernaryPoints() TernaryPolygon() TernaryText() JoinTheDots()

Add elements to ternary plot

Coordinates

Functions for manipulating co-ordinates.

OutsidePlot()

Is a point in the plotting area?

TernaryXRange() TernaryYRange()

X and Y coordinates of ternary plotting area

ReflectedEquivalents()

Reflected equivalents of points outside the ternary plot

TernaryCoords()

Convert ternary coordinates to Cartesian space

TriangleCentres()

Coordinates of triangle mid-points

XYToTernary()

Cartesian coordinates to ternary point

Contouring

Functions for adding contours and shading to ternary plots.

ColourTernary() ColorTernary()

Colour a ternary plot according to the output of a function

TernaryTiles()

Paint tiles on ternary plot

TernaryContour()

Add contours to a ternary plot

TernaryDensityContour()

Add contours of estimated point density to a ternary plot

TernaryPointValues() TernaryDensity()

Value of a function at regularly spaced points

Colour palettes

Colourblind-compatible palettes.

cbPalette8 cbPalette13 cbPalette15

Palettes compatible with colour blindness