Shiller House Prices

Data - US


U.S. House Prices

(ref:us-house-prices) U.S. Unemployment and Relative Rent Price

Code
shiller_house_prices %>%
  filter(month(date) == 1) %>%
  select(date, real_house_index) %>%
  mutate(real_house_index = log(real_house_index) - lag(log(real_house_index), 1)) %>%
  ggplot + geom_line(aes(x = date, y = real_house_index)) +
  ylab("") + xlab("") +
  theme_minimal() +
  scale_x_date(breaks = seq(1700, 2025, 20) %>% paste0("-01-01") %>% as.Date,
               labels = date_format("%Y")) +
  scale_color_manual(values = viridis(4)[1:3]) +
  theme(legend.position = c(0.2, 0.90),
        legend.title = element_blank()) +
  scale_y_continuous(breaks = 0.01*seq(-20, 100, 5),
                     labels = percent_format(acc = 1))

(ref:us-house-prices)