dbnomics: DBnomics ggplot2 theme

Description Usage Arguments Author(s) Examples

View source: R/dbnomics.R

Description

dbnomics is a simple ggplot2 theme for drawing nicer graphics. We do not recommend to use it. It has been included in the package to avoid errors when reproducing the vignette examples.

Usage

1
dbnomics(color_palette = "Set1", ...)

Arguments

color_palette

Character string (default "Set1") to change the default color palette. If you want to use the default palette, set it to NULL.

...

Arguments to be passed to the function ggplot2::theme.

Author(s)

Sebastien Galais

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
library(magrittr)
library(ggplot2)

rdb("IMF", "WEO:2019-10", query = "France current account balance percent") %>%
  ggplot(aes(x = period, y = value, color = series_name)) +
  geom_line(size = 1.2) +
  geom_point(size = 2) +
  dbnomics()

## End(Not run)

rdbnomics documentation built on Oct. 26, 2020, 1:06 a.m.