ggtern
makes use of several non-exported internal functions, list are as follows:ifthenelse
function takes input arguments x
, a
and b
and returns a
if x
is TRUE
, else, returns b
is.numericor
function takes input arguments A
and B
and returns A
if A
is numeric, else, returns B
find_global_tern
is a function that conducts a named search for the name
object instance, within the env
environment.
If an instance doesn't exist within the env
environment, a search is then conducted within the ggtern
and ggplot2
namespaces (in that order). This is a modified version of the original source as provided in ggplot2
, which has the same functionality, however, the modification is such that the function
now additionally searches within the ggtern
namespace prior to the ggplot2
namespace.
getBreaks
is a function that calculates the Breaks for Major or Minor Gridlines based
on the input limits.
tern_dep
is a function that gives a deprecation error, warning, or messsage,
depending on version number, it is based of the gg_dep
function which is
used inside the ggplot2
package
arrow_label_formatter
is a function that formats the labels directly adjacent to the ternary arrows.
joinCharacterSeries
is a function will turn a character vector
from the format c('a','b','c')
to a single string
in the following format: "'a','b' and 'c'"
identityInv
is a function which returns exactly the same as identity
however
it can be used within transformation logic via do.call(...)
in the same way as for example
ilrInv
is to ilr
.
getFormulaVars
is a function that returns a list of either dependent or independent variables used
in an input formula
Function to add missing scales and other items to the plot and its coordinates sytem
Function to add clipping mask if it isn't already present
ifthenelse(x, a, b)is.numericor(A, B)
find_global_tern(name, env = environment())
getBreaks(limits, isMajor, nMajor = 5, nMinor = 2 * nMajor)
tern_dep(version, msg)
arrow_label_formatter(label, suffix = NULL, sep = "/")
joinCharacterSeries(x, lastWord = "and")
identityInv(z)
getFormulaVars(x, dependent = TRUE)
scales_add_missing_tern(plot)
layers_add_missing_mask(plot)
x
is TRUEx
is FALSEA
is NOT numeric