plot.idtw | R Documentation |
Plot function for objects of type idtw
, the output of dtw()
and idtw()
respectively.
## S3 method for class 'idtw' plot(x, type = c("QC", "warp"), partial = NULL, selDim = 1, ...) # an alias for plot_idtw plot_idtw(x, type = c("QC", "warp"), partial = NULL, selDim = 1, ...) ## S3 method for class 'planedtw' plot(x, type = c("QC", "warp"), partial = NULL, selDim = 1, ...) # an alias for plot_planedtw plot_planedtw(x, type = c("QC", "warp"), partial = NULL, selDim = 1, ...) plotQC(x, Q, C, partial = NULL, selDim = 1, ...) plotWarp(x, Q, C, partial = NULL, selDim = 1, ...)
x |
output from |
Q |
one dimensional numeric vector |
C |
one dimensional numeric vector |
type |
character, one of c('QC', 'warp') |
partial |
list, the return value of |
selDim |
integer, gives the column index of the multivariate time series (matrices) to be plotted. (default = 1) If Q and C are univariate time series (vectors) then selDim is neglected. |
... |
Other arguments passed on to methods. |
The plot function visualizes the time warp and the alignment of the two time series. Also for partial alignments see dtw_partial()
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) plot(tmp, type = 'QC') plotQC(tmp) plot(tmp, type = 'warp') plotWarp(tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.