Skip to contents

Plots a vintages object along the dimension implied by its class: publication date for a tbl_pubdate, release number for a tbl_release. Defined once for the parent class tbl_vintage and inherited by both. plot_vintages() remains the entry point when the dimension, title or plot type need to be set explicitly.

Usage

# S3 method for class 'tbl_vintage'
plot(x, ...)

Arguments

x

An object inheriting from tbl_vintage, such as a tbl_pubdate or a tbl_release.

...

Additional arguments passed to plot_vintages().

Value

A ggplot2 object.

See also

Other revision graphs: plot_vintages(), theme_reviser()

Examples

df <- dplyr::filter(reviser::gdp, id == "US")
plot(df)
#> Warning: 89 time series supplied. Showing recent 30.


release_data <- get_nth_release(df, n = 0:5)
plot(release_data)