createTernaryVariables: Creates a ternaryVariables object: ternary plot variables...

Description Usage Arguments Details Examples

Description

Creates a ternaryVariables object: ternary plot variables definitions.

Usage

1
2
createTernaryVariables(blrNames = paste0("F", 1:3),
  blrLabels = sprintf("Fraction %s [%s]", 1:3, "%"), ...)

Arguments

blrNames

Vector of characters. Bottom, left and right variable names as they will be found in data.frame containing ternary data.

blrLabels

Vector of characters or vector of expressions. Bottom, left and right variable labels as they will be displayed on ternary plots.

...

Additional parameters passed to ternaryCheck

Details

In this package, ternary plots variables are defined by the 3 variables name (bottom, left, right), as they will be found in data.frame containing ternary datasets, and by the label of these variables on the axis of a ternary plot.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
library( "ternaryplot" ) 


## Default variables
tv <- createTernaryVariables() 
tv 

## Custom variables
tv2 <- createTernaryVariables( 
    blrNames  = c( "CLAY", "SILT", "SAND" ), 
    blrLabels = c( "Clay [%]", "SILT [%]", "SAND [%]" ) ) 
tv2 

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