Learn R Programming

CEC (version 0.9.3)

plot.cec: Plot CEC.

Description

Presents the results of cec function in the form of a plot. Colors of data points depend of the cluster they belong to. Ellipses are drawn with regards to the covariance (either model or sample) of each cluster.

Usage

## S3 method for class 'cec':
plot(x, col, cex = 0.5, pch = 16, cex.centers = 1, pch.centers = 8, 
ellipses.lwd = 4, ellipses = TRUE, model = T, xlab = "x", ylab = "y", ...)

Arguments

x
The result of cec function.
col
Use this argument to change default colors of points in the clusters.
cex
Basically the size of the points, see points.
pch
See points.
cex.centers
The same as cex parameter, except that it's related to the centers' means.
pch.centers
The same as pch parameter, except that it's related to the centers' means.
ellipses.lwd
Width of ellipses, points.
ellipses
If this parameter is TRUE, ellipses will be drawn.
model
If this parameter is TRUE, the model (expected) covariance will be used for each cluster insted of sample covariance (MLE) of the points in the cluster, when drawing ellipses.
xlab
See plot.
ylab
See plot.
...
Arguments are passed to plot function when drawing data points.

See Also

print.cec

Examples

Run this code
## See the examples of function cec.

Run the code above in your browser using DataLab