View source: R/PlotTimeSeries.R
PlotTimeSeries | R Documentation |
Plots time series as a ploty object for interactive purposes like zooming or investigating specific points of time with mouse
PlotTimeSeries(X, Y, xlab = "X", ylab = "Y",
main = "Timeseries by Plotly", col = "black", SaveIt = FALSE)
X |
[1:n] vector, both lines require the same xvalues, e.g. the time of the time series, |
Y |
[1:n] vector of first line |
xlab |
Optional, string for xlabel. Default is "X" |
ylab |
Optional, string for ylabel. Default is "Y" |
main |
Optional, title of plot. Default is "Timeseries by Plotly" |
col |
Optional, color of two lines. Default is "black" |
SaveIt |
Optional, TRUE if you want to save plot as html in |
Enables to visualize the time series interactively, using plotly
plotly
object
Wrapper in order to unify Input and Output
Michael Thrun
data(ElectricityBRD)
PlotTimeSeries(ElectricityBRD$Mrd_KWh, ElectricityBRD$Time, "Mrd KWh", "Time", "Electricity production in BRD")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.