Skip to contents

abs_plot() can automatically generate appropriate plots for ABS Time Series indicators for both static display in documents, or RMarkdown, as well as interactive plots through plotly.

Usage

abs_plot(
  data = NULL,
  filter_with,
  over = deprecated(),
  years = 2015,
  compare_aus = TRUE,
  markdown = FALSE,
  facet = NULL,
  plotly = FALSE,
  void = FALSE,
  ...
)

Arguments

data

(optional). Specify a data frame or tibble object to use data other than the labour_force data included in the aitidata package. You can use the pipe operator.

filter_with

named list specifying what should be plot.

over

[Deprecated] over is no longer supported. Please use filter_with instead.

years

numeric.

compare_aus

(optional) logical. Defaults to TRUE which adds the Australian data for selected indicators.

markdown

(optional) logical. Defaults to FALSE. Specify TRUE if you want to use markdown elements in title/subtitle/axis titles

facet

(optional) string. Defaults to NULL. Specify which variable to facet the graph on.

plotly

(optional) logical. Defaults to FALSE which creates a ggplot2 plot. Select TRUE to create a plotly plot. Note that some aspects of the plot are unavailable if plotly = TRUE, including subtitles, and captions.

void

(optional) logical. Defaults to FALSE. Specify TRUE to remove all plot elements except for the line.

...

other arguments passed to theme_fof()

Value

A ggplot2 time-series plot or a plotly time-series plot if plotly = TRUE