ggplot.decomposition {VisitorCounts}R Documentation

Decomposition ggplot Method

Description

Methods for plotting objects of the class "decomposition".

Usage

## S3 method for class 'decomposition'
ggplot(
  data,
  mapping = aes(),
  type = c("full", "period", "classical"),
  size = 1.5,
  date_breaks = "2 year",
  date_labels = "%y",
  plot_points = FALSE,
  ...
)

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.

type

A character string. One of "full","period", or "classical". If "full", the full reconstruction is plotted. If "period", the reconstruction of each period is plotted individually. If "classical", the trend and seasonality are plotted.

size

A number that represents the thickness of the lines being plotted

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.

plot_points

a boolean to specify if the plot should be points or continous line.

...

Additional arguments.

Value

A plot of the reconstruction in the "decomposition" class object.


[Package VisitorCounts version 2.0.3 Index]