plot.cec {CEC}R Documentation

Plot CEC Objects

Description

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.

Usage

## 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,
  ...
)

Arguments

x

A cec object resulting from the cec function.

col

A specification for the default plotting color of the points in the clusters. See par for more details.

cex

A numerical value giving the amount by which plotting text and symbols should be magnified relative to the default. See par for more details.

pch

Either an integer specifying a symbol or a single character to be used as the default in plotting points. See par for more details.

cex.centers

The same as cex, except that it applies only to the centers' means.

pch.centers

The same as pch, except that it applies only to the centers' means.

ellipses

If this parameter is TRUE, covariance ellipses will be drawn.

ellipses.lwd

The line width of the covariance ellipses. See lwd in par for more details.

ellipses.lty

The line type of the covariance ellipses. See lty in par for more details.

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 plot when drawing data points.

Value

This function returns nothing.

See Also

cec, print.cec

Examples

## See the examples provided with the cec() function.


[Package CEC version 0.11.1 Index]