plot.visitation_forecast_ensemble function

visitation_model visitation_forecast_ensemble plot Methods

visitation_model visitation_forecast_ensemble plot Methods

Method for plotting forecast ensemble.

## S3 method for class 'visitation_forecast_ensemble' plot( x, difference = FALSE, log_outputs = FALSE, plot_cumsum = FALSE, plot_percent_change = FALSE, actual_visitation = NULL, actual_visitation_label = "Actual", xlab = "Time", ylab = "Fitted Value", pred_colors = c("#ff6361", "#58508d", "#bc5090", "#003f5c"), actual_color = "#ffa600", size = 1.5, main = "Forecasts for Visitation Model", plot_points = FALSE, date_breaks = "1 month", date_labels = "%y %b", ... )

Arguments

  • x: An object of class visitation_forecast_ensemble.
  • difference: A Boolean specifying whether to plot the original fit or differenced series. The default option is FALSE, in which case, the series is not differenced.
  • log_outputs: whether to log the outputted forecasts or not
  • plot_cumsum: whether to plot the cumulative sum or not
  • plot_percent_change: whether to plot the percent change or not
  • actual_visitation: A timeseries object representing the actual visitation that will be plotted along site the visitation_forecast object
  • actual_visitation_label: a string that will be used for the label of the actual visitation.
  • xlab: A string that will be used for the xlabel of the plot
  • ylab: A string that will be used for the ylabel of the plot
  • pred_colors: an array of Strings that will be used for the predicted series colors of the plot
  • actual_color: a String that will be used for the actual series color of the plot,
  • size: A number that represents the thickness of the lines being plotted
  • main: A string that will be used for the title of the plot
  • plot_points: a boolean to specify if the plot should be points or continous line.
  • date_breaks: A string to represent the distance between dates that the x-axis should be in. ex "1 month", "1 year"
  • date_labels: A string to represent the format of the x-axis time labels.
  • ...: extra arguments to pass in

Returns

No return value, called for plotting objects of the class "visitation_forecast".

  • Maintainer: Robert Bowen
  • License: GPL-3
  • Last published: 2025-01-15

Useful links