Learn R Programming

dtwSat (version 0.1.0)

plotCostMatrix: Plotting cost matrices

Description

Method for plotting the internal matrices

Usage

plotCostMatrix(x, matrix.name = "costMatrix", normalize = FALSE)

Arguments

x
An dtwSat-class object
matrix.name
A character. The name of the matrix to plot, "costMatrix", "localMatrix", or "timeWeight". Default is "costMatrix"
normalize
Plot normalized distance. Default is FALSE

Value

object of class ggplot

See Also

dtwSat, plotPath, plotAlignment, and plotClassify

Examples

Run this code
names(query.list)
alig = twdtw(query.list[["Soybean"]], template, weight = "logistic",
               alpha = 0.1, beta = 100, keep=TRUE)

gp = plotCostMatrix(x=alig, matrix.name="localMatrix")
gp

gp = plotCostMatrix(x=alig, matrix.name="timeWeight")
gp

gp = plotCostMatrix(x=alig, matrix.name="costMatrix")
gp

Run the code above in your browser using DataLab