Learn R Programming

RemixAutoML (version 0.4.2)

TimeSeriesPlotter: TimeSeriesPlotter

Description

TimeSeriesPlotter is a function to plot single or multiple lines on a single plot

Usage

TimeSeriesPlotter(
  data = data,
  TargetVariable = "TargetVariableName",
  DateVariable = "DateVariableName",
  GroupVariables = "GroupVariableName",
  EvaluationMode = FALSE,
  VLineDate = NULL,
  Aggregate = NULL,
  NumberGroupsDisplay = 5,
  LevelsToDisplay = NULL,
  OtherGroupLabel = "Other",
  DisplayOtherGroup = FALSE,
  TextSize = 12,
  LineWidth = 1,
  Color = "blue",
  XTickMarks = "1 year",
  AngleX = 35,
  AngleY = 0,
  ChartColor = "lightsteelblue1",
  BorderColor = "darkblue",
  TextColor = "darkblue",
  GridColor = "white",
  BackGroundColor = "gray95",
  LegendPosition = "bottom",
  LegendTextColor = "darkblue",
  LegendTextSize = 10,
  ForecastLineColor = "black",
  PredictionIntervals = FALSE,
  TS_ModelID = NULL,
  SSForecast = FALSE,
  PredictionIntervalColorInner = "aquamarine1",
  PredictionIntervalColorOuter = "peachpuff1"
)

Arguments

data

Source data

TargetVariable

Target variable

DateVariable

Date variable

GroupVariables

Group variables

EvaluationMode

TRUE means two lines are displayed for Actual and Forecast

VLineDate

Date of last actual target value

Aggregate

Choose from 'sum' or 'mean'

NumberGroupsDisplay

Number of lines to display

LevelsToDisplay

Value

OtherGroupLabel

Label to call all other group levels

DisplayOtherGroup

If TRUE, a line will be shown with all levels that fall into 'other' otherwise no line will be shown

TextSize

Default 12

LineWidth

Numeric value. Default is 1

Color

Set to "blue", "red", etc

XTickMarks

Number of tick marks on x-axis. "1 minute","15 minutes","30 minutes","1 hour","3 hour","6 hour","12 hour","1 day","3 day","1 week","2 week","1 month","3 month","6 month","1 year","2 year","5 year","10 year"

AngleX

Angle of text on x axis

AngleY

Angle of text on y axis

ChartColor

Color of chart background

BorderColor

Color of border

TextColor

Text color

GridColor

Grid color

BackGroundColor

Background color

LegendPosition

Legend position

LegendTextColor

Text color

LegendTextSize

Text size

ForecastLineColor

Forecast line color

PredictionIntervals

Set to TRUE to plot prediction intervals

TS_ModelID

Select a model from the list for forecasting viewer

SSForecast

Default FALSE. Set to TRUE for single series models

PredictionIntervalColorInner

Fills 20th to 80th percentiles

PredictionIntervalColorOuter

Fills 5th to 20th and 80th to 95th percentiles

See Also

Other Graphics: ChartTheme(), RemixTheme(), multiplot()