Learn R Programming

dtwSat (version 0.1.0)

plotAlignment: Plotting alignment of dtwSat object

Description

Method for plotting the alignments of Time-Weighted DTW analysis

Usage

plotAlignment(x, n, attr = 1, shift = 0.5)

Arguments

x
An dtwSat-class object
n
An integer, the index of the alignment to plot
attr
An integer or a character indicating the attribute for plotting, i.e. the column of the query. Default is 1
shift
A number, it shifts the pattern position in the x direction. Default is 0.5

Value

object of class ggplot

See Also

dtwSat, plotPath, 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 = plotAlignment(alig, n=1, attr="evi", shift=0.5)
gp

Run the code above in your browser using DataLab