plot.VPdtw: Plot VPdtw object

View source: R/plot.VPdtw.R

plot.VPdtwR Documentation

Plot VPdtw object

Description

Plot VPdtw object

Usage

## S3 method for class 'VPdtw'
plot(
  x,
  type = c("All", "Before", "After", "Shift", "Chromatograms"),
  xlim = NULL,
  ...
)

Arguments

x

A VPdtw object generated by VPdtw.

type

What to plot.

xlim

Numeric vector specifying x-axis limits.

...

Additional arguments

Value

No return value, called for side effects.

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").

Examples


  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)
  

VPdtw documentation built on Sept. 11, 2024, 8:16 p.m.