prc_hpi_hsva %>%
left_join(unit, by = "unit") %>%
group_by(unit, Unit) %>%
summarise(Nobs = n()) %>%
arrange(-Nobs) %>%
{if (is_html_output()) print_table(.) else .}
unit | Unit | Nobs |
---|---|---|
INX_A_AVG | Annual average index | 650 |
RCH_A_AVG | Annual average rate of change | 609 |
prc_hpi_hsva %>%
filter(geo %in% c("FR", "IT", "DE"),
unit == "INX_A_AVG") %>%
time_to_date %>%
left_join(geo, by = "geo") %>%
ggplot() + geom_line() + theme_minimal() +
aes(x = date, y = values, color = Geo, linetype = Geo) +
scale_color_manual(values = viridis(4)[1:3]) +
scale_x_date(breaks = seq(1920, 2025, 1) %>% paste0("-01-01") %>% as.Date,
labels = date_format("%y")) +
theme(legend.position = c(0.35, 0.9),
legend.title = element_blank()) +
scale_y_log10(breaks = seq(-100, 300, 10)) +
ylab("House Price Index") + xlab("")
prc_hpi_hsva %>%
filter(geo %in% c("BE", "DK", "FI"),
unit == "INX_A_AVG") %>%
time_to_date %>%
left_join(geo, by = "geo") %>%
ggplot() + geom_line() + theme_minimal() +
aes(x = date, y = values, color = Geo, linetype = Geo) +
scale_color_manual(values = viridis(4)[1:3]) +
scale_x_date(breaks = seq(1920, 2025, 1) %>% paste0("-01-01") %>% as.Date,
labels = date_format("%y")) +
theme(legend.position = c(0.1, 0.9),
legend.title = element_blank()) +
scale_y_log10(breaks = seq(-100, 300, 10)) +
ylab("House Price Index") + xlab("")