PlotTimeSeries: Create interactive plot for selected time series

Description Usage Arguments Value See Also Examples

View source: R/PlotTimeSeries.R

Description

Constructor function for creating an interactive plot for selected time series.

Usage

1
PlotTimeSeries(data, timeCol = NULL, valCol = "All", main = "")

Arguments

data

A data.table containing the time series data.

timeCol

A string specifies the time column - this column must be of a known time-based class. If missing, time will be set as starting from "1990-01-01".

valCol

A vector specifies the value column(s). If missing, all non-time columns will be assigned to it.

main

Main plot title (optional).

Value

An interactive dygraph plot showing all time series specified in valCol.

See Also

dygraph

Examples

1
2
3
 PlotTimeSeries(ProcessorTime, "time")
 PlotTimeSeries(ProcessorTime, "time", c("BN2", "CO4"))
 PlotTimeSeries(data.table(x = runif(100)))

jingjin1018/anetimeseries documentation built on May 19, 2019, 10:35 a.m.