dbnomics.Rd 957 Bytes
Newer Older
1
2
3
4
5
6
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dbnomics.R
\name{dbnomics}
\alias{dbnomics}
\title{DBnomics ggplot2 theme}
\usage{
7
dbnomics(color_palette = "Set1", ...)
8
9
}
\arguments{
10
11
12
13
\item{color_palette}{Character string (default \code{"Set1"}) to change the
default color palette. If you want to use the default palette, set it to
\code{NULL}.}

14
\item{...}{Arguments to be passed to the function \code{ggplot2::theme}.}
15
16
}
\description{
17
\code{dbnomics} is a simple ggplot2 theme for drawing nicer graphics. We do not
18
recommend to use it. It has been included in the package to avoid errors
19
when reproducing the vignette examples.
20
21
22
}
\examples{
\dontrun{
23
library(magrittr)
24
25
library(ggplot2)

26
rdb("IMF", "WEO:2019-10", query = "France current account balance percent") \%>\%
27
28
29
30
31
32
  ggplot(aes(x = period, y = value, color = series_name)) +
  geom_line(size = 1.2) +
  geom_point(size = 2) +
  dbnomics()
}
}
33
34
35
\author{
Sebastien Galais
}