createTernarySystem: Creates a ternarySystem object: ternary plot system...

Description Usage Arguments Details Examples

Description

Creates a ternarySystem object: ternary plot system definition.

Usage

1
2
3

Arguments

ternaryGeometry

A ternary geometry (as defined by createTernaryGeometry). If NULL, use the default output of createTernaryGeometry.

ternaryVariables

A set of ternary variables (as defined by createTernaryVariables. If NULL, use the default output of createTernaryVariables.

main

Single character string. Title of the triangle plot.

vertices

See tpPar. If non-null, data.frame with 4 columns: id, and 3 other columns corresponding to blrNames in ternaryVariables. If NULL, default values will be used getTpPar("vertices"), and the columns names changed to those of ternaryVariables.

classes

See tpPar.

scale

See tpPar. If non-null, data.frame with 3 columns, corresponding to blrNames in ternaryVariables. If NULL, default values will be used getTpPar("scale"), and the columns names changed to those of ternaryVariables. NOT USED YET.

...

Additional parameters passed to ternaryCheck

Details

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.

Examples

 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

ternaryplot documentation built on May 2, 2019, 6:11 p.m.