barplot-methods          package:flexclust          R Documentation

_B_a_r_p_l_o_t/_c_h_a_r_t _M_e_t_h_o_d_s _i_n _P_a_c_k_a_g_e '_f_l_e_x_c_l_u_s_t'

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

     Barplot of cluster centers or other cluster statistics.

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

     ## S4 method for signature 'kcca':
     barplot(height, bycluster = TRUE, oneplot = TRUE,
         data = NULL, FUN=colMeans, main = deparse(substitute(height)), 
         which = 1:height@k, names.arg = NULL,
         oma=par("oma"), col=NULL, mcol="darkred", srt=45, ...)

     ## S4 method for signature 'kcca':
     barchart(x, data, xlab="", strip.prefix="Cluster ", ...)

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

height, x: An object of class '"kcca"'.

bycluster: If 'TRUE', then each barplot shows one cluster. If 'FALSE',
          then each barplot compares all cluster for one input
          variable.

 oneplot: If 'TRUE', all barplots are plotted together on one page,
          else each plot is on a seperate page.

    data: If not 'NULL', cluster membership is predicted for the new
          data and used for the plots. By default the values from the
          traing data are used. Ignored by the 'barchart' method.

     FUN: The function to be applied to each cluster for calculating
          the bar heights.

   which: Index number of clusters for the plot.

names.arg: A vector of names to be plotted below each bar.

main, oma, xlab, ...: Graphical parameters.

     col: Vector of colors for the clusters.

    mcol: If not 'NULL', the value of 'FUN' for the complete data set
          is plotted over each bar as a line segment with color 'mcol'.

     srt: Number between 0 and 90, rotation of the x-axis labels.

strip.prefix: Prefix string for the strips of the Trellis display.

_D_e_t_a_i_l_s:

     This works only for '"kcca"' objects, no method is available for
     "kccasimple" objects.

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

     Friedrich Leisch

