dtwclust
ggplot2
plotting
system.## S3 method for class 'dtwclust,missing':
plot(x, y, clus = seq_len(x@k),
labs.arg = NULL, data = NULL, time = NULL, plot = TRUE, ...)
dtwclust-class
as returned by dtwclust
.labs
for more
informationdtwclust
.geom_line
for the plotting of the
cluster centers. Default values are: linetype = "dashed"
, size = 1.5
,
colour = "black"
save.data
must be set to TRUE
when running dtwclust
to be able to
use this.Optionally, you can manually provide the clustering result as well as the data in data
.
The function returns the gg
object invisibly, in case you want to modify it to your liking. You
might want to look at ggplot_build
if that's the case.
dtwclust-class
, dtwclust
, ggplot