Learn R Programming

flexclust (version 0.7-0)

plot-methods: Methods for Function plot in Package `flexclust'

Description

Plot the neighbourhood graph of a cluster solution together with projected data points.

Usage

## S3 method for class 'kcca,missing':
plot(x, y, which=1:2, project=NULL,
         data=NULL, points=!is.null(data), hull=!is.null(data),
         number = TRUE, simlines=TRUE,
         lwd=1, maxlwd=8*lwd, cex=1.5, numcol="black", nodes=16,
         add=FALSE, xlab="", ylab="", xlim = NULL,
         ylim = NULL, pch=NULL, col=NULL, ...)

Arguments

x
an object of class "kcca"
y
not used
which
Index number of dimensions of (projected) input space to plot.
project
Projection object, for which a predict method exists, e.g., the result of prcomp.
data
Data to include in plot.
points
Logical, shall data points be plotted?
hull
If TRUE, then hulls of confidence regions of the data are plotted. If a function, it is used for plotting the hulls.
number
Logical, plot number labels in nodes of graph?
numcol, cex
Color and size of number labels in nodes of graph.
nodes
Plotting symbol to use for nodes if no numbers are drawn.
simlines
Logical, plot edges of graph?
lwd, maxlwd
Numerical, thickness of lines.
add
Logical, add to existing plot?
xlab, ylab
Axis labels.
xlim, ylim
Axis range.
pch, col, ...
Plotting symbols and colors for data points.