Learn R Programming

dtwSat (version 0.1.0)

plot,dtwSat-method: Plotting dtwSat objects

Description

Methods for plotting the results of the Time-Weighted DTW analysis

Usage

"plot"(x, type = "path", ...)

Arguments

x
A dtwSat-class object
type
A character for the plot type, ''path'', ''alignment'', or ''classify''. Default is "path"
...
additional arguments passed to plotting functions plotPath, plotAlignment, and plotClassify

Value

object of class ggplot

See Also

dtwSat-class, dtwSat, plotPath, plotAlignment, and plotClassify

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)

## Plot path
gp1 = plot(alig, type="path", normalize=TRUE, show.dist = TRUE)
gp1

## Plot alignment
gp2 = plot(alig, type="alignment", n=1, attr="evi", shift=0.5)
gp2

## Plot classification
gp3 = plot(alig, type="classify", attr="evi",
         from=as.Date("2009-09-01"),  to=as.Date("2013-09-01"),
         by = "6 month", normalized=TRUE, overlap=.7)
gp3

Run the code above in your browser using DataLab