ggplot.visitation_model {VisitorCounts}R Documentation

visitation_model ggplot2 method

Description

Methods for plotting objects of the class "decomposition" with ggplot2.

Usage

## S3 method for class 'visitation_model'
ggplot(
  data,
  mapping = aes(),
  difference = TRUE,
  actual_visitation = NULL,
  predicted_visitation_label = "Predicted",
  actual_visitation_label = "Actual",
  xlab = "Time",
  ylab = "Fitted Value",
  pred_color = "#ff6361",
  actual_color = "#ffa600",
  size = 1.5,
  main = "Fitted values for visitation model",
  plot_points = FALSE,
  date_breaks = "1 year",
  date_labels = "%y %b",
  ...
)

Arguments

data

An object of class "decomposition".

mapping

Default list of aesthetic mappings to use for plot. If not specified, must be supplied in each layer added to the plot.

difference

A Boolean specifying whether to plot the original fit or differenced series. The default option is TRUE, in which case, the series is differenced.

actual_visitation

A timeseries object representing the actual visitation that will be plotted along site the visitation_forecast object.

predicted_visitation_label

a string that will be used for the label of the actual visitation.

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_color

a string that will be used for the predicted series color 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.

...

Additional arguments.

Value

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


[Package VisitorCounts version 2.0.3 Index]