Examples for 'cluster::plot.partition'


Plot of a Partition of the Data Set

Aliases: plot.partition

Keywords: cluster hplot

### ** Examples

## generate 25 objects, divided into 2 clusters.
x <- rbind(cbind(rnorm(10,0,0.5), rnorm(10,0,0.5)),
           cbind(rnorm(15,5,0.5), rnorm(15,5,0.5)))
plot(pam(x, 2))
plot of chunk example-cluster-plot.partition-1
plot of chunk example-cluster-plot.partition-1
## Save space not keeping data in clus.object, and still clusplot() it:
data(xclara)
cx <- clara(xclara, 3, keep.data = FALSE)
cx$data # is NULL
NULL
plot(cx, data = xclara)
plot of chunk example-cluster-plot.partition-1
plot of chunk example-cluster-plot.partition-1

[Package cluster version 2.1.4 Index]