SwarmSVM (version 0.1-6)

plot.alphasvm: Plot alphasvm object

Description

Plot alphasvm object

Usage

# S3 method for alphasvm
plot(
  x,
  data,
  formula = NULL,
  fill = TRUE,
  grid = 50,
  slice = list(),
  symbolPalette = grDevices::palette(),
  svSymbol = "x",
  dataSymbol = "o",
  ...
)

Arguments

x

An object of class alphasvm

data

data to visualize. Should be the same used for fitting.

formula

formula selecting the visualized two dimensions. Only needed if more than two input variables are used.

fill

switch indicating whether a contour plot for the class regions should be added.

grid

granularity for the contour plot.

slice

a list of named values for the dimensions held constant (only needed if more than two variables are used). The defaults for unspecified dimensions are 0 (for numeric variables) and the first level (for factors). Factor levels can either be specified as factors or character vectors of length 1.

symbolPalette

Color palette used for the class the data points and support vectors belong to.

svSymbol

Symbol used for support vectors.

dataSymbol

Symbol used for data points (other than support vectors).

...

additional graphics parameters passed to graphics::filled.contour and plot.