object: a ksvm classification object created by the ksvm function
data: a data frame or matrix containing data to be plotted
grid: granularity for the contour plot.
slice: a list of named numeric values for the dimensions held constant (only needed if more than two variables are used). Dimensions not specified are fixed at 0.