plot.cec | R Documentation |
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 class '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,
...
)
x |
A |
col |
A specification for the default plotting color of the points in
the clusters. See |
cex |
A numerical value giving the amount by which plotting text and
symbols should be magnified relative to the default. See |
pch |
Either an integer specifying a symbol or a single character to be
used as the default in plotting points. See |
cex.centers |
The same as |
pch.centers |
The same as |
ellipses |
If this parameter is TRUE, covariance ellipses will be drawn. |
ellipses.lwd |
The line width of the covariance ellipses. See |
ellipses.lty |
The line type of the covariance ellipses. See |
model |
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. |
xlab |
A label for the x axis. See plot for more details. |
ylab |
A label for the y axis. See plot for more details. |
... |
Additional arguments passed to |
This function returns nothing.
cec
, print.cec
## See the examples provided with the cec() function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.