ggts_facet: Plot a faceted time series - multiple time series panels

Description Usage Arguments Value Examples

Description

Plot a faceted time series – multiple time series panels

Usage

1
ggts_facet(.data, ...)

Arguments

.data

the data to be plotted. Either a dataframe with a time column (e.g. a "Date", "POSIXlt", or "POSIXct" object), a ts or mts object, zoo object, or xts object.

...

arguments to be passed to dplyr select. If a dplyr helper frunction is used, e.g. matches, dplyr must be loaded or the function must be pasted via dplyr::matches("x")

Value

a ggplot with the faceted time series

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
data(economis)
ggts_facet(economics)
ggts_facet(economics, psavert, uempmed)

library(xts)
data(AAPL.data) ##xts object
ggts_facet(AAPL.data)
ggts_facet(AAPL.data, -dplyr::matches("Volume"))

library(AER)
data(USMacroSW) ##mts object
ggts_facet(USMacroSW)

ChandlerLutz/ggts documentation built on May 6, 2019, 9:56 a.m.