Plots a continuous-time k-means clustering object generated by a call
to kmeans.ct.
# S3 method for 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,
...
)None; a plot is generated.
clustering object produced by kmeans.ct
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.
logical: Should transitions between clusters be marked
with vertical lines? Defaults to TRUE.
plot colors
line type
x- and y-axis labels
either a logical variable (whether a legend should be included) or a character
vector to appear in the legend. Default is TRUE.
number of columns for legend
character expansion factor for legend
other arguments passed to matplot
Philip Tzvi Reiss <reiss@stat.haifa.ac.il> and Biplab Paul <paul.biplab497@gmail.com>
kmeans.ct, which includes an example