Learn R Programming

deseats (version 1.1.0)

seasonplot_gg: Creation of Seasonal Plots in the Style of ggplot2

Description

Simplified seasonal plot creation of time series objects in order to identify seasonal patterns.

Usage

seasonplot_gg(x)

Value

The function returns a ggplot2 plot object.

Arguments

x

a time series object of class "ts".

Details

The function returns an plot object in the style of ggplot2. The plot can therefore be adjusted easily using common ggplot2 syntax.

Examples

Run this code
seasonplot_gg(TEMPERATURE) +
 ggplot2::ylab("Degrees Celsius") +
 ggplot2::ggtitle("Seasonal plot of German temperature data")

Run the code above in your browser using DataLab