Makes boxplots of the results of a bagged clustering run.
# S3 method for bclust
boxplot(x, n=nrow(x$centers), bycluster=TRUE,
main=deparse(substitute(x)), oneplot=TRUE,
which=1:n, ...)
Clustering result, object of class "bclust"
.
Number of clusters to plot, by default the number of clusters
used in the call of bclust
.
If TRUE
(default), a boxplot for each cluster
is plotted. If FALSE
, a boxplot for each variable is plotted.
Main title of the plot, by default the name of the cluster object.
If TRUE
, all boxplots appear on one screen (using
an appropriate rectangular layout).
Number of clusters which should be plotted, default is all clusters.
Additional arguments for boxplot
.
# NOT RUN {
data(iris)
bc1 <- bclust(iris[,1:4], 3, base.centers=5)
boxplot(bc1)
# }
Run the code above in your browser using DataLab