Code
%>%
IFS left_join(INDICATOR, by = "INDICATOR") %>%
group_by(INDICATOR, Indicator, FREQ) %>%
summarise(Nobs = n()) %>%
arrange(-Nobs) %>%
if (is_html_output()) datatable(., filter = 'top', rownames = F) else .} {
Data - IMF
%>%
IFS left_join(INDICATOR, by = "INDICATOR") %>%
group_by(INDICATOR, Indicator, FREQ) %>%
summarise(Nobs = n()) %>%
arrange(-Nobs) %>%
if (is_html_output()) datatable(., filter = 'top', rownames = F) else .} {
%>%
IFS left_join(CL_AREA_IFS, by = c("iso2c" = "AREA")) %>%
group_by(iso2c, AREA_desc, FREQ) %>%
summarise(Nobs = n()) %>%
arrange(-Nobs) %>%
if (is_html_output()) datatable(., filter = 'top', rownames = F) else .} {
%>%
IFS filter(INDICATOR == "EDNA_USD_XDC_RATE") %>%
left_join(CL_AREA_IFS, by = c("iso2c" = "AREA")) %>%
group_by(iso2c, AREA_desc, FREQ) %>%
summarise(Nobs = n(),
date1 = first(date),
date2 = last(date)) %>%
arrange(-Nobs) %>%
if (is_html_output()) datatable(., filter = 'top', rownames = F) else .} {
%>%
IFS filter(iso2c == "FR",
%in% c("FIDR_PA", "FILR_PA", "FIMM_PA", "FIGB_PA")) %>%
INDICATOR left_join(INDICATOR, by = "INDICATOR") %>%
ggplot(.) + theme_minimal() +
geom_line(aes(x = date, y = value / 100, color = Indicator, linetype = Indicator)) +
scale_y_continuous(breaks = 0.01*seq(0, 300, 1),
labels = scales::percent_format(accuracy = 1)) +
scale_color_manual(values = viridis(5)[1:4]) +
theme(legend.position = c(0.45, 0.85),
legend.title = element_blank()) +
scale_x_date(breaks = as.Date(paste0(seq(1700, 2020, 5), "-01-01")),
labels = date_format("%y")) +
xlab("") + ylab("Interest Rates")
%>%
IFS filter(iso2c == "DE",
%in% c("FIDR_PA", "FILR_PA", "FIMM_PA", "FIGB_PA")) %>%
INDICATOR left_join(INDICATOR, by = "INDICATOR") %>%
ggplot(.) + theme_minimal() +
geom_line(aes(x = date, y = value / 100, color = Indicator, linetype = Indicator)) +
scale_y_continuous(breaks = 0.01*seq(0, 300, 1),
labels = scales::percent_format(accuracy = 1)) +
scale_color_manual(values = viridis(5)[1:4]) +
theme(legend.position = c(0.45, 0.85),
legend.title = element_blank()) +
scale_x_date(breaks = as.Date(paste0(seq(1700, 2020, 5), "-01-01")),
labels = date_format("%y")) +
xlab("") + ylab("Interest Rates")
%>%
IFS filter(iso2c == "IT",
%in% c("FIDR_PA", "FILR_PA", "FIMM_PA", "FIGB_PA")) %>%
INDICATOR left_join(INDICATOR, by = "INDICATOR") %>%
ggplot(.) + theme_minimal() +
geom_line(aes(x = date, y = value / 100, color = Indicator, linetype = Indicator)) +
scale_y_continuous(breaks = 0.01*seq(0, 300, 1),
labels = scales::percent_format(accuracy = 1)) +
scale_color_manual(values = viridis(5)[1:4]) +
theme(legend.position = c(0.45, 0.85),
legend.title = element_blank()) +
scale_x_date(breaks = as.Date(paste0(seq(1700, 2020, 5), "-01-01")),
labels = date_format("%y")) +
xlab("") + ylab("Interest Rates")
%>%
IFS filter(iso2c == "US",
%in% c("FIDR_PA", "FILR_PA", "FIMM_PA", "FIGB_PA")) %>%
INDICATOR left_join(INDICATOR, by = "INDICATOR") %>%
ggplot(.) + theme_minimal() +
geom_line(aes(x = date, y = value / 100, color = Indicator, linetype = Indicator)) +
scale_y_continuous(breaks = 0.01*seq(0, 300, 1),
labels = scales::percent_format(accuracy = 1)) +
scale_color_manual(values = viridis(5)[1:4]) +
theme(legend.position = c(0.45, 0.85),
legend.title = element_blank()) +
scale_x_date(breaks = as.Date(paste0(seq(1700, 2020, 5), "-01-01")),
labels = date_format("%y")) +
xlab("") + ylab("Interest Rates")
%>%
IFS filter(iso2c == "CL",
%in% c("FIDR_PA", "FILR_PA", "FIMM_PA", "FIGB_PA")) %>%
INDICATOR left_join(INDICATOR, by = "INDICATOR") %>%
ggplot(.) + theme_minimal() +
geom_line(aes(x = date, y = value / 100, color = Indicator, linetype = Indicator)) +
scale_y_continuous(breaks = 0.01*seq(0, 300, 5),
labels = scales::percent_format(accuracy = 1)) +
scale_color_manual(values = viridis(5)[1:4]) +
theme(legend.position = c(0.45, 0.85),
legend.title = element_blank()) +
scale_x_date(breaks = as.Date(paste0(seq(1700, 2020, 5), "-01-01")),
labels = date_format("%y")) +
xlab("") + ylab("Interest Rates")
%>%
IFS filter(iso2c == "JP",
%in% c("FIDR_PA", "FILR_PA", "FIMM_PA", "FIGB_PA")) %>%
INDICATOR left_join(INDICATOR, by = "INDICATOR") %>%
ggplot(.) + theme_minimal() +
geom_line(aes(x = date, y = value / 100, color = Indicator, linetype = Indicator)) +
scale_y_continuous(breaks = 0.01*seq(0, 300, 1),
labels = scales::percent_format(accuracy = 1)) +
scale_color_manual(values = viridis(5)[1:4]) +
theme(legend.position = c(0.45, 0.85),
legend.title = element_blank()) +
scale_x_date(breaks = as.Date(paste0(seq(1700, 2020, 5), "-01-01")),
labels = date_format("%y")) +
xlab("") + ylab("Interest Rates")
%>%
IFS filter(iso2c == "VE",
%in% c("FIDR_PA", "FILR_PA", "FIMM_PA", "FIGB_PA")) %>%
INDICATOR left_join(INDICATOR, by = "INDICATOR") %>%
ggplot(.) + theme_minimal() +
geom_line(aes(x = date, y = value / 100, color = Indicator, linetype = Indicator)) +
scale_y_continuous(breaks = 0.01*seq(0, 300, 5),
labels = scales::percent_format(accuracy = 1)) +
scale_color_manual(values = viridis(5)[1:4]) +
theme(legend.position = c(0.45, 0.85),
legend.title = element_blank()) +
scale_x_date(breaks = as.Date(paste0(seq(1700, 2020, 5), "-01-01")),
labels = date_format("%y")) +
xlab("") + ylab("Interest Rates")
%>%
IFS filter(iso2c == "CA",
%in% c("FIDR_PA", "FILR_PA", "FIMM_PA", "FIGB_PA")) %>%
INDICATOR left_join(INDICATOR, by = "INDICATOR") %>%
ggplot(.) + theme_minimal() +
geom_line(aes(x = date, y = value / 100, color = Indicator, linetype = Indicator)) +
scale_y_continuous(breaks = 0.01*seq(0, 300, 5),
labels = scales::percent_format(accuracy = 1)) +
scale_color_manual(values = viridis(5)[1:4]) +
theme(legend.position = c(0.45, 0.85),
legend.title = element_blank()) +
scale_x_date(breaks = as.Date(paste0(seq(1700, 2020, 5), "-01-01")),
labels = date_format("%y")) +
xlab("") + ylab("Interest Rates")
%>%
IFS filter(iso2c == "NL",
%in% c("FIDR_PA", "FILR_PA", "FIMM_PA", "FIGB_PA")) %>%
INDICATOR left_join(INDICATOR, by = "INDICATOR") %>%
ggplot(.) + theme_minimal() +
geom_line(aes(x = date, y = value / 100, color = Indicator, linetype = Indicator)) +
scale_y_continuous(breaks = 0.01*seq(0, 300, 1),
labels = scales::percent_format(accuracy = 1)) +
scale_color_manual(values = viridis(5)[1:4]) +
theme(legend.position = c(0.45, 0.85),
legend.title = element_blank()) +
scale_x_date(breaks = as.Date(paste0(seq(1700, 2020, 5), "-01-01")),
labels = date_format("%y")) +
xlab("") + ylab("Interest Rates")
%>%
IFS filter(iso2c == "AU",
%in% c("FIDR_PA", "FILR_PA", "FIMM_PA", "FIGB_PA")) %>%
INDICATOR left_join(INDICATOR, by = "INDICATOR") %>%
ggplot(.) + theme_minimal() +
geom_line(aes(x = date, y = value / 100, color = Indicator, linetype = Indicator)) +
scale_y_continuous(breaks = 0.01*seq(0, 300, 1),
labels = scales::percent_format(accuracy = 1)) +
scale_color_manual(values = viridis(5)[1:4]) +
theme(legend.position = c(0.45, 0.85),
legend.title = element_blank()) +
scale_x_date(breaks = as.Date(paste0(seq(1700, 2020, 5), "-01-01")),
labels = date_format("%y")) +
xlab("") + ylab("Interest Rates")
%>%
IFS filter(iso2c == "ES",
%in% c("FIDR_PA", "FILR_PA", "FIMM_PA", "FIGB_PA")) %>%
INDICATOR left_join(INDICATOR, by = "INDICATOR") %>%
ggplot(.) + theme_minimal() +
geom_line(aes(x = date, y = value / 100, color = Indicator, linetype = Indicator)) +
scale_y_continuous(breaks = 0.01*seq(0, 300, 5),
labels = scales::percent_format(accuracy = 1)) +
scale_color_manual(values = viridis(5)[1:4]) +
theme(legend.position = c(0.45, 0.85),
legend.title = element_blank()) +
scale_x_date(breaks = as.Date(paste0(seq(1700, 2020, 5), "-01-01")),
labels = date_format("%y")) +
xlab("") + ylab("Interest Rates")
%>%
IFS filter(iso2c == "LB",
%in% c("FIDR_PA", "FILR_PA", "FIMM_PA", "FIGB_PA")) %>%
INDICATOR left_join(INDICATOR, by = "INDICATOR") %>%
ggplot(.) + theme_minimal() +
geom_line(aes(x = date, y = value / 100, color = Indicator, linetype = Indicator)) +
scale_y_continuous(breaks = 0.01*seq(0, 300, 5),
labels = scales::percent_format(accuracy = 1)) +
scale_color_manual(values = viridis(5)[1:4]) +
theme(legend.position = c(0.45, 0.85),
legend.title = element_blank()) +
scale_x_date(breaks = as.Date(paste0(seq(1700, 2020, 5), "-01-01")),
labels = date_format("%y")) +
xlab("") + ylab("Interest Rates")
%>%
IFS filter(iso2c == "GR",
%in% c("FIDR_PA", "FILR_PA", "FIMM_PA", "FIGB_PA")) %>%
INDICATOR left_join(INDICATOR, by = "INDICATOR") %>%
ggplot(.) + theme_minimal() +
geom_line(aes(x = date, y = value / 100, color = Indicator, linetype = Indicator)) +
scale_y_continuous(breaks = 0.01*seq(0, 300, 5),
labels = scales::percent_format(accuracy = 1)) +
scale_color_manual(values = viridis(5)[1:4]) +
theme(legend.position = c(0.45, 0.85),
legend.title = element_blank()) +
scale_x_date(breaks = as.Date(paste0(seq(1700, 2020, 5), "-01-01")),
labels = date_format("%y")) +
xlab("") + ylab("Interest Rates")
%>%
IFS filter(iso2c == c("LB", "US", "BB"),
%in% c("FILR_PA")) %>%
INDICATOR ggplot(.) + theme_minimal() +
geom_line(aes(x = date, y = value / 100, color = iso2c, linetype = iso2c)) +
scale_y_continuous(breaks = 0.01*seq(0, 300, 5),
labels = scales::percent_format(accuracy = 1)) +
scale_color_manual(values = viridis(5)[1:4]) +
theme(legend.position = c(0.45, 0.85),
legend.title = element_blank()) +
scale_x_date(breaks = as.Date(paste0(seq(1700, 2020, 5), "-01-01")),
labels = date_format("%y")) +
xlab("") + ylab("Interest Rates")