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 


Search within the ternaryplot package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.