barplot-methods {flexclust}R Documentation

Methods for Function barplot in Package 'flexclust'

Description

Barplot of cluster centers or other cluster statistics.

Usage

## 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, xcent=TRUE,
    oma=par("oma"), ...)

Arguments

height 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.
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.
xcent If true, the value of FUN for the complete data set is plotted over each bar as a line segment.
main, oma, ... Graphical parameters.

Author(s)

Friedrich Leisch


[Package flexclust version 0.7-0 Index]