Description Usage Arguments Details Value See Also Examples
Plots any of the desirability functions on top of a graph, usually a histogram or density plot.
1 |
x |
Vector of numeric or integer values. |
des.func |
Name of the desirability function to plot (in quotes). |
des.args |
A vector of named arguments for the chosen desirability function. |
... |
Arguments for the plotting function (e.g. xlim, lwd, lty). |
This function can be used to visualise how the desirabilities are mapped from the raw data to a 0-1 scale, which can help select suitable cut points. The scale of the y-axis has a minimum of 0 and a maximum of 1.
WARNING: If you set xlim values for the histogram or density plot, then you must pass the same xlim values to des.line; otherwise the data and desirability function (plotted line) will be misaligned. If xlim is not set, then the same default values will be used for the data and the function.
Plotted values of the desirability function.
d.low
, d.high
, d.central
,
d.ends
, d.4pl
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.