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,
  type = "functions",
  mark.transitions = TRUE,
  col = NULL,
  lty = NULL,
  xlab = "Time",
  ylab = NULL,
  legend = TRUE,
  ncol.legend = 1,
  ...
)

Arguments

x

clustering object produced by kmeans.ct

type

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 colours

lty

line type

xlab, ylab

x- and y-axis labels

legend

logical: should a legend be included? Default is TRUE.

ncol.legend

number of columns for legend

...

other arguments passed to matplot

Value

None; a plot is generated.

Author(s)

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

See Also

kmeans.ct, which includes an example


[Package ctmva version 1.1.0 Index]