
# S3 method for idtw
plot(x, type = "QC", ...)
# an alias for plot_idtw
plot_idtw(x, type="QC", ...)plotQC(x, Q, C, ...)
plotWarp(x, Q, C, ...)
output from dtw(Q, C)
one dimensional numeric vector
one dimensional numeric vector
character, one of c('QC', 'warp')
Other arguments passed on to methods. Not currently used.
The plot function visualizes the time warp and the alignment of the two time series.
# NOT RUN {
Q <- cumsum(rnorm(100))
C <- Q[11:100] + rnorm(90, 0, 0.5)
tmp <- dtw(Q = Q, C = C, ws = 15, return_wp = TRUE, return_QC = TRUE) # the ordinary calculation
plotQC(tmp, Q, C)
plotWarp(tmp, Q, C)
plot(tmp, type = 'warp')
plot(tmp, Q, C, type = 'QC')
plot(tmp, type = 'QC')# since return_QC = TRUE, this is also possible
# }
Run the code above in your browser using DataLab