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.
dbnomics(color_palette = "Set1", ...)
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
.
# 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()
# }
Run the code above in your browser using DataLab