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")
<- FPORSOC22 %>%
plot_linear filter(filename == "F29",
== "Figure 3",
sheet %in% c("RDB", "RDB_arbitrable")) %>%
variable %>%
year_to_date2 + geom_line(aes(x = date, y = value, color = variable)) +
ggplot 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_linear +
plot_log scale_y_log10(breaks = seq(0, 7000, 25)) + ylab("")
<- plot_linear +
plot_log scale_y_log10(breaks = seq(0, 7000, 25)) + ylab("")
ggarrange(plot_linear + ggtitle("Linear"), plot_log + ggtitle("Log"), common.legend = T)