Code
FPORSOC22 %>%
group_by(variable) %>%
summarise(Nobs = n()) %>%
print_table_conditional()| variable | Nobs |
|---|---|
| RDB | 62 |
| RDB_arbitrable | 62 |
| RDB_arbitrable_evolution | 62 |
| RDB_evolution | 62 |
Data - INSEE
FPORSOC22 %>%
group_by(variable) %>%
summarise(Nobs = n()) %>%
print_table_conditional()| variable | Nobs |
|---|---|
| RDB | 62 |
| RDB_arbitrable | 62 |
| RDB_arbitrable_evolution | 62 |
| RDB_evolution | 62 |
FPORSOC22 %>%
group_by(sheet) %>%
summarise(Nobs = n()) %>%
print_table_conditional()| sheet | Nobs |
|---|---|
| Figure 3 | 248 |
FPORSOC22 %>%
group_by(year) %>%
summarise(Nobs = n()) %>%
arrange(desc(year)) %>%
print_table_conditional()i_g("bib/insee/FPORSOC22/F29/fig3.png")
plot_linear <- FPORSOC22 %>%
filter(filename == "F29",
sheet == "Figure 3",
variable %in% c("RDB", "RDB_arbitrable")) %>%
year_to_date2 %>%
ggplot + geom_line(aes(x = date, y = value, color = variable)) +
scale_color_manual(values = c("blue", "red")) +
theme_minimal() +
scale_x_date(breaks = as.Date(paste0(seq(1960, 2100, 10), "-01-01")),
labels = date_format("%Y")) +
theme(legend.position = c(0.25, 0.85),
legend.title = element_blank()) +
xlab("") + ylab("Indice des prix des logements anciens") +
scale_y_continuous(breaks = seq(0, 7000, 25))
plot_linear
plot_log <- plot_linear +
scale_y_log10(breaks = seq(0, 7000, 25)) + ylab("")plot_log <- plot_linear +
scale_y_log10(breaks = seq(0, 7000, 25)) + ylab("")
ggarrange(plot_linear + ggtitle("Linear"), plot_log + ggtitle("Log"), common.legend = T)