Plot Time Series
Displays an interactive plot of a DTSg object. This method
requires dygraphs and RColorBrewer to be installed. Its main
purpose is not to make pretty plots, but rather to offer a possibility to
interactively explore time series. The title of the plot and the label of
its primary axis are automatically generated out of the object's metadata
(fields). See DTSg for further information.
## S3 method for class 'DTSg' plot( x, from = first(self$values(reference = TRUE)[[".dateTime"]]), to = last(self$values(reference = TRUE)[[".dateTime"]]), cols = self$cols(class = "numeric"), secAxisCols = NULL, secAxisLabel = "", ... )
x | 
 A   | 
from | 
 A   | 
to | 
 A   | 
cols | 
 A character vector specifying the columns whose values shall be plotted.  | 
secAxisCols | 
 An optional character vector specifying the columns whose
values shall be plotted on a secondary axis. Must be a subset of
  | 
secAxisLabel | 
 A character string specifying the label of the optional secondary axis.  | 
... | 
 Not used (S3 method only).  | 
Returns a DTSg object.
# new DTSg object
x <- DTSg$new(values = flow)
# plot time series
if (requireNamespace("dygraphs", quietly = TRUE) &&
    requireNamespace("RColorBrewer", quietly = TRUE)) {
  ## R6 method
  x$plot()
  ## S3 method
  plot(x = x)
}Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.