plot.VPdtw | R Documentation |
Plot VPdtw object
## S3 method for class 'VPdtw'
plot(
x,
type = c("All", "Before", "After", "Shift", "Chromatograms"),
xlim = NULL,
...
)
x |
A VPdtw object generated by |
type |
What to plot. |
xlim |
Numeric vector specifying x-axis limits. |
... |
Additional arguments |
No return value, called for side effects.
Plots information about alignment according to value of type
: either
unaligned query and reference ("Before"
), aligned query and reference
("After"
), shift at each index ("Shift"
), a three-panel plot
containing all three of these options ("All"
), or a two-panel plot with
unaligned and aligned query ("Chromatograms"
).
query <- c(1,5,4,3,9,8,5,2,6,5,4)
reference <- c(rnorm(5), query, rnorm(5))
lambda <- rep(0, length(reference))
maxshift <- 11
res <- VPdtw(reference, query, lambda, maxshift)
plot(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.