JDF_ICP_COICOP_INX |>
filter(REF_AREA %in% c("DE"),
# 000000: HICP - Overall index
ICP_ITEM %in% c("110000", "120000", "030000", "041000"),
FREQ == "M",
UNIT_INDEX_BASE == "2015 = 100",
UNIT == "PURE_NUMB") |>
month_to_date() |>
filter(!is.na(obsValue)) |>
ggplot() +
geom_line(aes(x = date, y = obsValue, color = Icp_item)) +
scale_color_manual(values = viridis(5)[1:4]) +
theme_minimal() +
scale_x_date(breaks = seq(1920, 2100, 2) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
theme(legend.position = c(0.35, 0.85),
legend.title = element_blank()) +
scale_y_log10(breaks = seq(0, 200, 5),
labels = dollar_format(accuracy = 1, prefix = "")) +
ylab("HICP - Overall index") + xlab("")