drawparti                package:klaR                R Documentation

_P_l_o_t_t_i_n_g _t_h_e _2-_d _p_a_r_t_i_t_i_o_n_s _o_f _c_l_a_s_s_i_f_i_c_a_t_i_o_n _m_e_t_h_o_d_s

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

     Plot showing the classification of observations based on 
     classification methods (e.g. 'lda', 'qda') for two variables. 
     Moreover, the classification borders are displayed and the
     apparent error rates are given in each title.

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

     drawparti(grouping, x, y, method = "lda", prec = 100, xlab = NULL, 
         ylab = NULL, col.correct = "black", col.wrong = "red", 
         col.mean = "black", col.contour = "darkgrey", 
         gs = as.character(grouping), pch.mean = 19, cex.mean = 1.3, 
         print.err = 0.7, legend.err = FALSE, legend.bg = "white",
         imageplot = TRUE, image.colors = cm.colors(nc), ...)        

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

grouping: factor specifying the class for each observation.

       x: first explanatory vector.

       y: second explanatory vector.

  method: the method the classification is based on, currently
          supported are: 'lda', 'qda', 'rpart', 'naiveBayes',  'rda',
          'sknn' and 'svmlight'

    prec: precision used to draw the classification borders (the higher
          the more precise; default: 100).

    xlab: a title for the x axis.

    ylab: a title for the y axis.

col.correct: color for correct classified objects.

col.wrong: color for wrong classified objects.

col.mean: color for class means (only for methods 'lda' and 'qda').

col.contour: color of the contour lines (if 'imageplot = FALSE').

      gs: group symbol (plot character), must have the same length as
          'grouping'.

pch.mean: plot character for class means (only for methods 'lda' and
          'qda').

cex.mean: character expansion for class means (only for methods 'lda'
          and 'qda').

print.err: character expansion for text specifying the apparent error
          rate.  If 'print.err = 0', nothing is printed.

legend.err: logical; whether to plot the apparent error rate above the
          plot (if 'FALSE'), or into a legend into the upper right
          corner of the plot (if 'TRUE').  This argument is ignored, if
          'print.err = 0', i.e. if no error rate is printed.

legend.bg: Backgound colour to use for the legend.

imageplot: logical; whether to use an 'image' plot or 'contour' lines.

image.colors: colors used for the 'imageplot', if TRUE.

     ...: Further arguments passed to the classification 'method'  and
          underlying plot functions.

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

     Karsten Luebke, luebke@statistik.uni-dortmund.de, Uwe Ligges,
     Irina Czogiel

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

     'partimat'

