View source: R/TimeSeriesLineChart.R
TimeSeriesLineChart | R Documentation |
A plotly line chart to visualize a time series
TimeSeriesLineChart(Time,Values,xlab='Time',Resolution='AsIs',
y1lab='Values of Time Series',y2lab='Approximated Curve',
main='Time Series',cols=c('black','red'),LegendPos='topright',
Save=FALSE,...)
Time |
[1:n] vector, both lines require the same xvalues, e.g. the time of the time series, |
Values |
[1:n] vector of histroical time series, usually test data |
xlab |
Optional, string for xlabel |
Resolution |
either "AsIs" - nothing changes "Weekly" or "Monthly" |
y1lab |
Optional, string for first ylabel |
y2lab |
Optional, string for second ylabel |
main |
Optional, title of plot |
cols |
Optional, color of two lines |
LegendPos |
Position of Legend in Plot, Either 'topleft', 'topright', bottomleft or 'bottomright' |
Save |
Optional, default FALSE; TRUE if you want to save plot as html in |
... |
if
"Weekly"
or
"Monthly"
selected, further aggregation arguments for |
enables to visualize to lines and points in one plot overlaying them using ploty
plotly
object
Michael Thrun
Adjusted version of DualaxisLinechart
#ToDo
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.