Description Usage Arguments Value See Also Examples
View source: R/PlotTimeSeries.R
Constructor function for creating an interactive plot for selected time series.
1 | PlotTimeSeries(data, timeCol = NULL, valCol = "All", main = "")
|
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). |
An interactive dygraph plot showing all time series specified in valCol.
1 2 3 | PlotTimeSeries(ProcessorTime, "time")
PlotTimeSeries(ProcessorTime, "time", c("BN2", "CO4"))
PlotTimeSeries(data.table(x = runif(100)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.