Methods for plotting objects of the class "decomposition" with ggplot2.
# S3 method for 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",
...
)No return value, called for plotting objects of the class "visitation_forecast".
An object of class "decomposition".
Default list of aesthetic mappings to use for plot. If not specified, must be supplied in each layer added to the plot.
A Boolean specifying whether to plot the original fit or differenced series. The default option is TRUE, in which case, the series is differenced.
A timeseries object representing the actual visitation that will be plotted along site the visitation_forecast object.
a string that will be used for the label of the actual visitation.
a string that will be used for the label of the actual visitation.
A string that will be used for the xlabel of the plot
A string that will be used for the ylabel of the plot
a string that will be used for the predicted series color of the plot,
a String that will be used for the actual series color of the plot,
A number that represents the thickness of the lines being plotted
A string that will be used for the title of the plot
a boolean to specify if the plot should be points or continous line.
A string to represent the distance between dates that the x-axis should be in. ex "1 month", "1 year"
A string to represent the format of the x-axis time labels.
Additional arguments.