plot.tune.RdVisualizes the results of parameter tuning.
# S3 method for tune plot(x, type = c("contour", "perspective"), theta = 60, col = "lightblue", main = NULL, xlab = NULL, ylab = NULL, swapxy = FALSE, transform.x = NULL, transform.y = NULL, transform.z = NULL, color.palette = hsv_palette(), nlevels = 20, ...)
| x | an object of class |
|---|---|
| type | choose whether a contour plot or a perspective plot is used if two parameters are to be visualized. Ignored if only one parameter has been tuned. |
| theta | angle of azimuthal direction. |
| col | the color(s) of the surface facets. Transparent colors are ignored. |
| main | main title |
| xlab, ylab | titles for the axes. N.B. These must be character strings; expressions are not accepted. Numbers will be coerced to character strings. |
| swapxy | if |
| transform.x, transform.y, transform.z | functions to transform
the parameters ( |
| color.palette | color palette used in contour plot. |
| nlevels | number of levels used in contour plot. |
| ... | Further graphics parameters. |
data(iris) obj <- tune.svm(Species~., data = iris, sampling = "fix", gamma = 2^c(-8,-4,0,4), cost = 2^c(-8,-4,-2,0)) plot(obj, transform.x = log2, transform.y = log2)