stat_interpolate_tern(mapping = NULL, data = NULL,
geom = "InterpolateTern", position = "identity", na.rm = FALSE,
n = getOption("tern.mesh.size"), buffer = getOption("tern.mesh.buffer"),
formula = value ~ poly(x, y, degree = 2, raw = TRUE), method = "lm", ...)aes or aes_string. Only needs to be set
at the layer level if you are overriding the plot defaults.FALSE (the default), removes missing values with
a warning. If TRUE silently removes missing values.y ~ x,
y ~ poly(x, 2), y ~ log(x)method argument aboveformula=value~poly(x,y,degree=2), where value is the response (dependent)
variable, and the independent predictor variables, x and y represent the variables
matching to twp (2) out of the three (3) ternary axis definitions (T,L or R)
as documented and defined within coord_tern.Having said the above, the model formula can be changed to anything that suits the user by
including method and/or formula arguments
which get passed through to the model fitting and prediction components of the calculation routine.
geom_interpolate_tern, lm, loess