plot.cec
presents the results from the cec
function in the form of a plot. The colors of the data points represent the
cluster they belong to. Ellipses are drawn to represent the covariance
(of either the model or the sample) of each cluster.
# S3 method for cec
plot(
x,
col,
cex = 0.5,
pch = 19,
cex.centers = 1,
pch.centers = 8,
ellipses = TRUE,
ellipses.lwd = 4,
ellipses.lty = 2,
model = TRUE,
xlab,
ylab,
...
)
This function returns nothing.
A cec
object resulting from the cec
function.
A specification for the default plotting color of the points in
the clusters. See par
for more details.
A numerical value giving the amount by which plotting text and
symbols should be magnified relative to the default. See par
for more details.
Either an integer specifying a symbol or a single character to be
used as the default in plotting points. See par
for more
details.
The same as cex
, except that it applies only to the
centers' means.
The same as pch
, except that it applies only to the
centers' means.
If this parameter is TRUE, covariance ellipses will be drawn.
The line width of the covariance ellipses. See lwd
in par
for more details.
The line type of the covariance ellipses. See lty
in par
for more details.
If this parameter is TRUE, the model (expected) covariance will be used for each cluster instead of the sample covariance (MLE) of the points in the cluster, when drawing the covariance ellipses.
A label for the x axis. See plot for more details.
A label for the y axis. See plot for more details.
Additional arguments passed to plot
when drawing data
points.
cec
, print.cec
## See the examples provided with the cec() function.
Run the code above in your browser using DataLab