TimeSeriesLineChart: Time Series Line Chart

View source: R/TimeSeriesLineChart.R

TimeSeriesLineChartR Documentation

Time Series Line Chart

Description

A plotly line chart to visualize a time series

Usage

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,...)

Arguments

Time

[1:n] vector, both lines require the same xvalues, e.g. the time of the time series, POSIXlt or POSIXct or codeas.Date are accepted

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 getwd() directory

...

if "Weekly" or "Monthly" selected, further aggregation arguments for aggregateDays2Weeks or aggregateDays2Months, FUN has to be set, e.g. FUN=sum

Details

enables to visualize to lines and points in one plot overlaying them using ploty

Value

plotly object

Author(s)

Michael Thrun

See Also

Adjusted version of DualaxisLinechart

Examples

#ToDo

Mthrun/TSAT documentation built on Feb. 5, 2024, 11:15 p.m.