plot.kmeans.ct {ctmva}R Documentation

Plot a kmeans.ct object

Description

Plots a continuous-time k-means clustering object generated by a call to kmeans.ct.

Usage

## S3 method for class 'kmeans.ct'
plot(
  x,
  plottype = "functions",
  mark.transitions = TRUE,
  col = NULL,
  lty = NULL,
  xlab = "Time",
  ylab = NULL,
  legend = TRUE,
  ncol.legend = 1,
  cex.legend = 1,
  ...
)

Arguments

x

clustering object produced by kmeans.ct

plottype

either "functions" (the default), to display each variable as a smooth function of time, or "distance", to plot distances from the k cluster means versus time.

mark.transitions

logical: Should transitions between clusters be marked with vertical lines? Defaults to TRUE.

col

plot colors

lty

line type

xlab, ylab

x- and y-axis labels

legend

either a logical variable (whether a legend should be included) or a character vector to appear in the legend. Default is TRUE.

ncol.legend

number of columns for legend

cex.legend

character expansion factor for legend

...

other arguments passed to matplot

Value

None; a plot is generated.

Author(s)

Philip Tzvi Reiss <reiss@stat.haifa.ac.il> and Biplab Paul <paul.biplab497@gmail.com>

See Also

kmeans.ct, which includes an example


[Package ctmva version 1.4.0 Index]