Description Usage Arguments Details Examples
Creates a ternarySystem object: ternary plot system definition.
1 2 3 | createTernarySystem(ternaryGeometry = NULL, ternaryVariables = NULL,
main = character(0), vertices = NULL, classes = NULL, scale = NULL,
...)
|
ternaryGeometry |
A ternary geometry (as defined by
|
ternaryVariables |
A set of ternary variables (as defined by
|
main |
Single character string. Title of the triangle plot. |
vertices |
See |
classes |
See |
scale |
See |
... |
Additional parameters passed to |
Ternary systems are a combination of (a) a ternary
geometry (as defined by
createTernaryGeometry
), (b) a set of
ternary variables (as defined by
createTernaryVariables
and an optional
classification system, that is polygons drawn on top of ternary
plots, that define different zones in the fractions.
The classification is defined by a collection of polygons (in
classes
) with different vertices
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | library( "ternaryplot" )
## Default variables
tsy <- createTernarySystem()
tsy
## Custom variables
tsy2 <- createTernarySystem(
"ternaryVariables" = createTernaryVariables(
"blrNames" = c( "CLAY", "SILT", "SAND" ),
"blrLabels" = c( "Clay [%]", "Silt [%]", "Sand [%]" )
),
"ternaryGeometry" = createTernaryGeometry( ##
"fracSum" = 100,
"tlrAngles" = c( 45, 45, 90 ) # top, left, right angles
),
"main" = "My ternary plot" )
tsy2
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.