Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot.tune

Plot Tuning Object


Description

Visualizes the results of parameter tuning.

Usage

## S3 method for class '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, ...)

Arguments

x

an object of class tune

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 TRUE, the parameter axes are swaped (only used in case of two parameters).

transform.x, transform.y, transform.z

functions to transform the parameters (x and y) and the error measures (z). Ignored if NULL.

color.palette

color palette used in contour plot.

nlevels

number of levels used in contour plot.

...

Further graphics parameters.

Author(s)

David Meyer (based on C/C++-code by Chih-Chung Chang and Chih-Jen Lin)
David.Meyer@R-project.org

See Also

Examples

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)
  plot(obj, type = "perspective", theta = 120, phi = 45)

e1071

Misc Functions of the Department of Statistics, Probability Theory Group (Formerly: E1071), TU Wien

v1.7-11
GPL-2 | GPL-3
Authors
David Meyer [aut, cre], Evgenia Dimitriadou [aut, cph], Kurt Hornik [aut], Andreas Weingessel [aut], Friedrich Leisch [aut], Chih-Chung Chang [ctb, cph] (libsvm C++-code), Chih-Chen Lin [ctb, cph] (libsvm C++-code)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.