Description Usage Arguments Details Author(s) References See Also Examples
This function takes the output of a train
object and creates
a line or level plot using the lattice or ggplot2 libraries.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
x |
an object of class |
metric |
What measure of performance to plot. Examples of possible values are "RMSE", "Rsquared", "Accuracy" or "Kappa". Other values can be used depending on what metrics have been calculated. |
plotType |
a string describing the type of plot ( |
digits |
an integer specifying the number of significant digits used to label the parameter value. |
xTrans |
a function that will be used to scale the x-axis in scatter plots. |
data |
an object of class |
output |
either "data", "ggplot" or "layered". The first returns a data frame while the second returns a simple |
... |
|
If there are no tuning parameters, or none were varied, an error is produced.
If the model has one tuning parameter with multiple candidate values, a plot is produced showing the profile of the results over the parameter. Also, a plot can be produced if there are multiple tuning parameters but only one is varied.
If there are two tuning parameters with different values, a plot can be produced where a different line is shown for each value of of the other parameter. For three parameters, the same line plot is created within conditioning panels/facets of the other parameter.
Also, with two tuning parameters (with different values), a levelplot (i.e. un-clustered heatmap) can be created. For more than two parameters, this plot is created inside conditioning panels/facets.
Max Kuhn
Kuhn (2008), “Building Predictive Models in R Using the caret” (http://www.jstatsoft.org/v28/i05/)
train
, levelplot
, xyplot
, stripplot
, ggplot
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.