
Mixmod
]Plotting data from a [Mixmod
] object using parameters and partition
to distinguish the different clusters.
# S4 method for Mixmod
plot(x, y, showOnly = NULL, withResult = NULL, hist_x_dim = 10000, ...)
an object of class [Mixmod
]
a list of variables to plot (subset). Variables names or indices. Only in a quantitative case.
show only (...)
with result (...)
Histogram dimension (???)
further arguments passed to or from other methods
For quantitative case, ellipsoids (i.e. linear transformations of hyperspheres)
centered at the mean are drawn using the parameters computed by MIXMOD.
The directions of the principal axes of the ellipsoids are given by the eigenvectors of the covariance matrix
For qualitative case, a Multiple Correspondence Analysis is performed to get a 2-dimensional representation of the data set. Bigger symbol means that observations are similar.
## for quantitative case
data(iris)
xem <- mixmodCluster(iris[1:4], 3)
plot(xem)
plot(xem, c(1, 3))
plot(xem, c("Sepal.Length", "Sepal.Width"))
## for qualitative case
data(birds)
xem2 <- mixmodCluster(birds, 2)
plot(xem2)
legend("bottomleft", c("Cluster1", "Cluster2"), col = c(2, 3), pch = c(1, 2))
Run the code above in your browser using DataLab