Usage
## S3 method for class 'train':
plot(x,
plotType = "scatter",
metric = x$metric[1],
digits = getOption("digits") - 3,
xTrans = NULL,
nameInStrip = FALSE,
...)## S3 method for class 'train':
ggplot(data = NULL,
metric = data$metric[1],
plotType = "scatter",
output = "layered",
nameInStrip = FALSE,
...)
Arguments
x
an object of class train. 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 ("scatter", "level" or "line" (plot only))
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 train. output
either "data", "ggplot" or "layered". The first returns a data frame while the second returns a simple ggplot object with no layers. The third value returns a plot with a set of layers.
nameInStrip
a logical: if there are more than 2 tuning parameters, should the name and value be included in the panel title?