plot                 package:kernlab                 R Documentation

_p_l_o_t _m_e_t_h_o_d _f_o_r _s_u_p_p_o_r_t _v_e_c_t_o_r _o_b_j_e_c_t

_D_e_s_c_r_i_p_t_i_o_n:

     Plot a binary classification support vector machine object. The
     'plot' function returns a contour plot of the decision values.

_U_s_a_g_e:

     ## S4 method for signature 'ksvm':
     plot(object, data=NULL, grid = 50, slice = list())

_A_r_g_u_m_e_n_t_s:

  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. 

_A_u_t_h_o_r(_s):

     Alexandros Karatzoglou
      alexandros.karatzoglou@ci.tuwien.ac.at

_S_e_e _A_l_s_o:

     'ksvm'

_E_x_a_m_p_l_e_s:

     ## Demo of the plot function
     x <- rbind(matrix(rnorm(120),,2),matrix(rnorm(120,mean=3),,2))
     y <- matrix(c(rep(1,60),rep(-1,60)))

     svp <- ksvm(x,y,type="C-svc")
     plot(svp,data=x)

