This function creates a graphical representation of the desirability profiles within the data range. It requires a data frame object generated from an optimization function. You can use a simpler data frame to plot the lines and present a more accurate data from another optimization call.
desirabilityPlot(functions, plotData, bestValues, desirab, types)An array of functions
A data frame generated from an optimization function
The optimal mixture composition to be presented
An array of desirability functions
An array of strings containing the attributes to be shown for each desirability function. Currently only accepts "max" or "min"
A ggplot composite object from patchwork