The goal of macrobd is to provide easy access to macro data of Bangladesh. Currently, timeseries data on following variables are available:
macrobd
is not yet available on CRAN. But you can install the development version by issuing
the following command:
devtools::install_github("rfaridi/macrobd")
Then load the library by typing in library(macrobd)
in the console. Afterwards, inflation
, foreign_trade
etc will be available in the console.
head(inflation)
head(foreign_trade)
head(exhange.rate)
library(ggplot2)
library(patchwork)
money.ts <- as.tsibble(money)
money.ts %>%
filter_index("2018" ~ .) %>%
ggplot() + geom_line(aes(date, M1,group=""))
deposit.ts <- as.tsibble(deposit)
deposit.dd <- deposit.ts %>%
filter_index("2018" ~ .) %>%
ggplot() +
geom_line(aes(date,dp.dd,group=""))
deposit.td <- deposit.ts %>%
filter_index("2018" ~ .) %>%
ggplot() +
geom_line(aes(date,dp.td,group=""), color="blue")
deposit.dd + deposit.td
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.