Learn R Programming

dtwSat (version 0.1.0)

plotPath: Plotting paths of dtwSat object

Description

Method for plotting the minimum paths in the cost matrix of Time-Weighted DTW

Usage

plotPath(x, normalize = FALSE, n.alignments = NULL, show.dist = FALSE, shift = c(-4, -1))

Arguments

x
An dtwSat-class object
normalize
Plot normalized distance. Default is FALSE
n.alignments
A vector. The alignment indices to plot. NULL will plot all possible alignments
show.dist
Display dtw distance for each alignment
shift
A vector of length 2. These values shift the position of the text in x and y, respectively. Argument used with show.dist

Value

object of class ggplot

See Also

dtwSat, plotAlignment, plotClassify, and plotCostMatrix

Examples

Run this code
names(query.list)
alig = dtwSat(query.list[["Soybean"]], template, weight = "logistic",
       alpha = 0.1, beta = 100, n.alignments = 4, keep = TRUE)
gp = plotPath(alig, normalize=TRUE, show.dist = TRUE)
gp

Run the code above in your browser using DataLab