model: an lm object, MixModel object, or any other model object that is compatible with the predict function, which is the mixture model to be plotted.
user.func: function supplied by the user that takes as arguments a dataframe called 'grid' and returns the predictions. This argument has been deprecated in favor of the model argument. Typically, this will be a wrapper function for predict() (e.g. predict(model,newdata=grid)). Additional arguments for user.func can be passed using the ellipsis argument for ModelPlot. Overrides model argument if both are specified.
dimensions: list argument that specifies the mixture variables to be plotted on the ternary plot. Values must correspond to variable names from the user-supplied model.
slice: list argument that specifies the value of fixed mixture components.
lims: vector of lower and upper constraints for ternary plot components (TopLower, TopUpper, LeftLower, LeftUpper, RightLower, RightUpper).
constraints: if TRUE constraints found in lims will be added to the graph.
constraint.pars: list of graphical parameters controlling the appearance of the constraint lines.
contour: if TRUE contour lines will be added to the graph.
contour.pars: list of graphical parameters controlling the appearance of the contour lines.
cuts: number of breaks between levels (used for contours if 'at' not specified).
at: list of contour levels (e.g. at=c(1,3,5,10) will draw contours at those heights). Overrides cuts argument.
res: resolution of the grid. Corresponds to number equally spaced values along the baseline of the simplex.
pseudo: if TRUE uses pseudo components to zoom in on constrained region. Will create the smallest equilateral triangle that still contains the whole constrained region.
fill: if TRUE regions between contour lines will be colored.
color.palette: is the color palette to use.
main: character value for main title or list containing character value and graphical parameters (e.g. main=list("main title",cex=2)).
axislabs: character vector of axis labels for ternary components.
axislab.pars: list of graphical parameters controlling the appearance of the axislabels.
axislab.offset: numeric value that creates or eliminates space between the angled axislabels and the tickmarks. Prevents axis labels from overlapping with tickmarks. Typically, absolute value would not exceed 0.05.
cornerlabs: character vector of corner labels for x1, x2 and x3 vertices.
cornerlab.pars: list of graphical parameters controlling the appearance of the axis labels.
grid: logical argument. If true, adds gridlines to the ternary plot.
grid.pars: list of graphical parameters controlling the appearance of the gridlines.
colorkey: logical or list of parameters. See levelplot documentation for more details.
labels: logical argument. If true, labels contour lines.
label.style: controls placement of contour labels. Choose from "mixed","flat", or "align." See panel.levelplot documentation for more details.
...: additional arguments passed to user.func
References
Cornell, J. A. Experiments with Mixtures: Models and Analysis of Mixture Data, John Wiley & Sons, New York, third edition, 2002.
"John Lawson, Cameron Willden (2016).", "Mixture Experiments in R Using mixexp.", "Journal of Statistical Software, Code Snippets, 72(2), 1-20.", "doi:10.18637/jss.v072.c02"