Last observation: août 2026 (N = 16)
First observation: janv. 1980 (N = 16)
Last data update: 15 oct. 2026, 23:17
Last compile: 16 oct. 2026, 01:32
`CONSO-MENAGES-2020` |>
filter(TIME_PERIOD %in% c("1980-01", "2000-01", "2020-01")) |>
select_if(function(col) length(unique(col)) > 1) |>
select(-IDBANK, -TITLE_FR, -TITLE_EN) |>
spread(TIME_PERIOD, OBS_VALUE) |>
arrange(-`2020-01`) |>
print_table_conditional()| PRODUIT_CONSO_MENAGES | OBS_REV | Produit_conso_menages | Obs_rev | 1980-01 | 2000-01 | 2020-01 |
|---|---|---|---|---|---|---|
| BIENS | 1 | Biens | Révision | NA | 38.018 | 47.910 |
| BIENS-MANUFACTURES | 1 | Biens manufacturés | Révision | NA | 31.255 | 40.544 |
| BIENS-FABRIQUES | 1 | Biens fabriqués | Révision | NA | NA | 21.275 |
| ALIMENTAIRE | 1 | Alimentaire | Révision | NA | NA | 18.023 |
| ALIMENTAIRE-HORS-TABAC | 1 | Alimentation hors tabac | Révision | NA | NA | 15.974 |
| BIENS-DURABLES | 1 | Biens durables | Révision | NA | NA | 10.566 |
| ENERGIE_DEC2 | 1 | Énergie, eau, déchets, cokéfaction et raffinage (DE, C2) | Révision | NA | 9.006 | 8.572 |
| BIENS-FABRIQUES-AUTRES | NA | Autres biens fabriqués | NA | 2.852 | 4.246 | 6.141 |
| MATERIELS-TRANSPORT | 1 | Matériels de transport | Révision | NA | NA | 5.537 |
| PRODUITS-PETROLIERS | 1 | Produits pétroliers | Révision | NA | 5.782 | 4.953 |
| TEXTILE | 1 | Textile-cuir | Révision | NA | 4.073 | 4.564 |
| ENERGIE_DE | NA | Énergie, eau et déchets (DE) | NA | 2.403 | 4.296 | 4.516 |
| ENERGIE_C2 | 1 | Cokéfaction et raffinage (C2) | Révision | NA | 4.571 | 3.992 |
| EQUIPEMENT-LOGEMENT | 1 | Équipement du logement | Révision | NA | NA | 3.594 |
| ENERGIE_PETROLE | NA | Énergie hors produits pétroliers | NA | 1.685 | 3.084 | 3.558 |
| BIENS-DURABLES-EQUIPEMENT | 1 | Biens durables d'équipement personnel | Révision | NA | NA | 1.440 |
| ALIMENTAIRE | NA | Alimentaire | NA | 12.273 | 16.242 | NA |
| ALIMENTAIRE-HORS-TABAC | NA | Alimentation hors tabac | NA | 9.830 | 13.280 | NA |
| BIENS | NA | Biens | NA | 27.167 | NA | NA |
| BIENS-DURABLES | NA | Biens durables | NA | 3.192 | 5.802 | NA |
| BIENS-DURABLES-EQUIPEMENT | NA | Biens durables d'équipement personnel | NA | 0.745 | 1.066 | NA |
| BIENS-FABRIQUES | NA | Biens fabriqués | NA | 9.491 | 13.894 | NA |
| BIENS-MANUFACTURES | NA | Biens manufacturés | NA | 22.693 | NA | NA |
| ENERGIE_C2 | NA | Cokéfaction et raffinage (C2) | NA | 4.134 | NA | NA |
| ENERGIE_DEC2 | NA | Énergie, eau, déchets, cokéfaction et raffinage (DE, C2) | NA | 6.556 | NA | NA |
| EQUIPEMENT-LOGEMENT | NA | Équipement du logement | NA | 0.375 | 0.928 | NA |
| MATERIELS-TRANSPORT | NA | Matériels de transport | NA | 3.119 | 4.936 | NA |
| PRODUITS-PETROLIERS | NA | Produits pétroliers | NA | 4.818 | NA | NA |
| TEXTILE | NA | Textile-cuir | NA | 4.031 | NA | NA |
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("BIENS", "ALIMENTAIRE", "ALIMENTAIRE-HORS-TABAC")) |>
month_to_date() |>
group_by(PRODUIT_CONSO_MENAGES) |>
arrange(date) |>
mutate(OBS_VALUE = 100*OBS_VALUE/OBS_VALUE[1]) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = PRODUIT_CONSO_MENAGES)) +
theme_minimal() + ylab("Consommation mensuelle") + xlab("") +
theme(legend.title = element_blank(),
legend.position = c(0.2, 0.9)) +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(100, 300, 10))
`CONSO-MENAGES-2020` |>
mutate(methode = "Méthode 2020") |>
bind_rows(`CONSO-MENAGES-2014` |>
mutate(methode = "Méthode 2014, octobre 2023")) |>
bind_rows(`CONSO-MENAGES-2014-vieux` |>
mutate(methode = "Méthode 2014, septembre 2023")) |>
filter(PRODUIT_CONSO_MENAGES %in% c("BIENS", "ALIMENTAIRE-HORS-TABAC")) |>
month_to_date() |>
group_by(Produit_conso_menages, methode) |>
arrange(date) |>
mutate(OBS_VALUE = 100*OBS_VALUE/OBS_VALUE[1]) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = Produit_conso_menages, linetype = methode)) +
theme_minimal() + ylab("Consommation mensuelle") + xlab("") +
theme(legend.title = element_blank(),
legend.position = c(0.2, 0.8)) +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(100, 300, 10))
invisible(Sys.setlocale("LC_TIME", "fr_CA.UTF-8"))
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("ALIMENTAIRE", "ALIMENTAIRE-HORS-TABAC")) |>
month_to_date() |>
arrange((date)) |>
group_by(Produit_conso_menages) |>
mutate(OBS_VALUE2 = OBS_VALUE/lag(OBS_VALUE, 6)-1) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE2, color = Produit_conso_menages)) +
theme_minimal() + ylab("Evolution de la consommation sur 6 mois (%)") + xlab("") +
theme(legend.title = element_blank(),
legend.position = c(0.2, 0.3)) +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_continuous(breaks = 0.01*seq(-100, 500, 2),
labels = percent_format(accuracy = 1))
invisible(Sys.setlocale("LC_TIME", "fr_CA.UTF-8"))
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("ALIMENTAIRE", "ALIMENTAIRE-HORS-TABAC")) |>
month_to_date() |>
arrange((date)) |>
group_by(Produit_conso_menages) |>
mutate(OBS_VALUE2 = OBS_VALUE/lag(OBS_VALUE, 12)-1) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE2, color = Produit_conso_menages)) +
theme_minimal() + ylab("Evolution de la consommation sur 12 mois (%)") + xlab("") +
theme(legend.title = element_blank(),
legend.position = c(0.2, 0.3)) +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_continuous(breaks = 0.01*seq(-100, 500, 2),
labels = percent_format(accuracy = 1))
invisible(Sys.setlocale("LC_TIME", "fr_CA.UTF-8"))
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("ALIMENTAIRE", "ALIMENTAIRE-HORS-TABAC")) |>
month_to_date() |>
arrange((date)) |>
group_by(Produit_conso_menages) |>
mutate(OBS_VALUE2 = OBS_VALUE/lag(OBS_VALUE, 18)-1) |>
arrange(desc(date)) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE2, color = Produit_conso_menages)) +
theme_minimal() + ylab("Evolution de la consommation sur 18 mois (%)") + xlab("") +
theme(legend.title = element_blank(),
legend.position = c(0.2, 0.3)) +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_continuous(breaks = 0.01*seq(-100, 500, 2),
labels = percent_format(accuracy = 1))
invisible(Sys.setlocale("LC_TIME", "fr_CA.UTF-8"))
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("ALIMENTAIRE", "ALIMENTAIRE-HORS-TABAC")) |>
month_to_date() |>
arrange((date)) |>
group_by(Produit_conso_menages) |>
mutate(OBS_VALUE2 = OBS_VALUE/lag(OBS_VALUE, 24)-1) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE2, color = Produit_conso_menages)) +
theme_minimal() + ylab("Evolution de la consommation sur 24 mois (%)") + xlab("") +
theme(legend.title = element_blank(),
legend.position = c(0.2, 0.3)) +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_continuous(breaks = 0.01*seq(-100, 500, 2),
labels = percent_format(accuracy = 1))
invisible(Sys.setlocale("LC_TIME", "fr_CA.UTF-8"))
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("ALIMENTAIRE", "ALIMENTAIRE-HORS-TABAC")) |>
month_to_date() |>
arrange((date)) |>
group_by(Produit_conso_menages) |>
mutate(OBS_VALUE2 = OBS_VALUE/lag(OBS_VALUE, 36)-1) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE2, color = Produit_conso_menages)) +
theme_minimal() + ylab("Evolution de la consommation sur 36 mois (%)") + xlab("") +
theme(legend.title = element_blank(),
legend.position = c(0.2, 0.3)) +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_continuous(breaks = 0.01*seq(-100, 500, 2),
labels = percent_format(accuracy = 1))
invisible(Sys.setlocale("LC_TIME", "fr_CA.UTF-8"))
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("ALIMENTAIRE", "ALIMENTAIRE-HORS-TABAC")) |>
month_to_date() |>
arrange((date)) |>
group_by(Produit_conso_menages) |>
mutate(OBS_VALUE2 = OBS_VALUE/lag(OBS_VALUE, 48)-1) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE2, color = Produit_conso_menages)) +
theme_minimal() + ylab("Evolution de la consommation sur 4 ans (%)") + xlab("") +
theme(legend.title = element_blank(),
legend.position = c(0.2, 0.3)) +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_continuous(breaks = 0.01*seq(-100, 500, 2),
labels = percent_format(accuracy = 1))
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("BIENS", "ALIMENTAIRE", "ALIMENTAIRE-HORS-TABAC")) |>
month_to_date() |>
#filter(date >= as.Date("1996-01-01")) %>%
group_by(PRODUIT_CONSO_MENAGES) |>
arrange(date) |>
mutate(OBS_VALUE = 100*OBS_VALUE/OBS_VALUE[1]) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = PRODUIT_CONSO_MENAGES)) +
theme_minimal() + ylab("Consommation mensuelle") + xlab("") +
theme(legend.title = element_blank(),
legend.position = c(0.2, 0.8)) +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(10, 300, 10))
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("BIENS", "ALIMENTAIRE", "ALIMENTAIRE-HORS-TABAC")) |>
month_to_date() |>
filter(date >= as.Date("1996-01-01")) |>
group_by(PRODUIT_CONSO_MENAGES) |>
arrange(date) |>
mutate(OBS_VALUE = 100*OBS_VALUE/OBS_VALUE[1]) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = PRODUIT_CONSO_MENAGES)) +
theme_minimal() + ylab("Consommation mensuelle") + xlab("") +
theme(legend.title = element_blank(),
legend.position = c(0.2, 0.8)) +
scale_x_date(breaks = seq(1950, 2100, 2) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(10, 300, 10))
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("BIENS", "ALIMENTAIRE", "ALIMENTAIRE-HORS-TABAC")) |>
month_to_date() |>
filter(date >= as.Date("2002-01-01")) |>
group_by(PRODUIT_CONSO_MENAGES) |>
arrange(date) |>
mutate(OBS_VALUE = 100*OBS_VALUE/OBS_VALUE[1]) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = PRODUIT_CONSO_MENAGES)) +
theme_minimal() + ylab("Consommation mensuelle") + xlab("") +
theme(legend.title = element_blank(),
legend.position = c(0.2, 0.9)) +
scale_x_date(breaks = seq(1950, 2100, 2) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(10, 300, 10))
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("BIENS", "ALIMENTAIRE", "ALIMENTAIRE-HORS-TABAC")) |>
month_to_date() |>
filter(date >= as.Date("2005-01-01")) |>
group_by(PRODUIT_CONSO_MENAGES) |>
arrange(date) |>
mutate(OBS_VALUE = 100*OBS_VALUE/OBS_VALUE[1]) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = PRODUIT_CONSO_MENAGES)) +
theme_minimal() + ylab("Consommation mensuelle") + xlab("") +
theme(legend.title = element_blank(),
legend.position = c(0.2, 0.3)) +
scale_x_date(breaks = seq(1950, 2100, 2) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(10, 300, 10))
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("BIENS", "ALIMENTAIRE", "ALIMENTAIRE-HORS-TABAC")) |>
month_to_date() |>
filter(date >= as.Date("2010-01-01")) |>
group_by(PRODUIT_CONSO_MENAGES) |>
arrange(date) |>
mutate(OBS_VALUE = 100*OBS_VALUE/OBS_VALUE[1]) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = PRODUIT_CONSO_MENAGES)) +
theme_minimal() + ylab("Consommation mensuelle") + xlab("") +
theme(legend.title = element_blank(),
legend.position = c(0.2, 0.3)) +
scale_x_date(breaks = seq(1950, 2100, 1) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(10, 300, 5))
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("BIENS", "ALIMENTAIRE", "ALIMENTAIRE-HORS-TABAC")) |>
month_to_date() |>
filter(date >= as.Date("2017-01-01")) |>
group_by(PRODUIT_CONSO_MENAGES) |>
arrange(date) |>
mutate(OBS_VALUE = 100*OBS_VALUE/OBS_VALUE[1]) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = PRODUIT_CONSO_MENAGES)) +
theme_minimal() + ylab("Consommation mensuelle") + xlab("") +
theme(legend.title = element_blank(),
legend.position = c(0.2, 0.3)) +
scale_x_date(breaks = seq(1950, 2100, 1) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(10, 300, 5))
invisible(Sys.setlocale("LC_TIME", "fr_CA.UTF-8"))
`CONSO-MENAGES-2020` |>
mutate(methode = "Méthode 2020") |>
bind_rows(`CONSO-MENAGES-2014` |>
mutate(methode = "Méthode 2014, 10/2023")) |>
bind_rows(`CONSO-MENAGES-2014-vieux` |>
mutate(methode = "Méthode 2014, 09/2023")) |>
filter(PRODUIT_CONSO_MENAGES %in% c("ALIMENTAIRE","ALIMENTAIRE-HORS-TABAC")) |>
month_to_date() |>
filter(date >= as.Date("2010-01-01")) |>
group_by(Produit_conso_menages, methode) |>
arrange(date) |>
mutate(OBS_VALUE = 100*OBS_VALUE/OBS_VALUE[1]) |>
select(date, OBS_VALUE, Produit_conso_menages, methode) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = Produit_conso_menages, linetype = methode)) +
theme_minimal() + ylab("Consommation mensuelle (vs Janvier 2010)") + xlab("") +
theme(legend.title = element_blank(),
axis.text.x = element_text(angle = 45, vjust = 1, hjust = 1),
legend.position = c(0.2, 0.8)) +
scale_x_date(breaks = "6 months",
labels = date_format("%B %Y")) +
scale_y_log10(breaks = seq(10, 300, 1),
labels = percent(seq(10, 300, 1)/100-1, acc = 1)) +
geom_hline(yintercept = 100, linetype = "dashed")
invisible(Sys.setlocale("LC_TIME", "fr_CA.UTF-8"))
`CONSO-MENAGES-2020` |>
mutate(methode = "Méthode 2020") |>
bind_rows(`CONSO-MENAGES-2014` |>
mutate(methode = "Méthode 2014, octobre 2023")) |>
bind_rows(`CONSO-MENAGES-2014-vieux` |>
mutate(methode = "Méthode 2014, septembre 2023")) |>
filter(PRODUIT_CONSO_MENAGES %in% c("ALIMENTAIRE","ALIMENTAIRE-HORS-TABAC")) |>
month_to_date() |>
filter(date >= as.Date("2018-01-01")) |>
group_by(Produit_conso_menages, methode) |>
arrange(date) |>
mutate(OBS_VALUE = 100*OBS_VALUE/OBS_VALUE[1]) |>
select(date, OBS_VALUE, Produit_conso_menages, methode) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = Produit_conso_menages, linetype = methode)) +
theme_minimal() + ylab("Consommation mensuelle (vs. Janvier 2018)") + xlab("") +
theme(legend.title = element_blank(),
axis.text.x = element_text(angle = 45, vjust = 1, hjust = 1),
legend.position = c(0.2, 0.3)) +
scale_x_date(breaks = "3 months",
labels = date_format("%B %Y")) +
scale_y_log10(breaks = seq(10, 300, 1),
labels = percent(seq(10, 300, 1)/100-1, acc = 1)) +
geom_hline(yintercept = 100, linetype = "dashed")
invisible(Sys.setlocale("LC_TIME", "fr_CA.UTF-8"))
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("BIENS", "ALIMENTAIRE", "ALIMENTAIRE-HORS-TABAC")) |>
month_to_date() |>
filter(date >= as.Date("2020-05-01")) |>
group_by(Produit_conso_menages) |>
arrange(date) |>
mutate(OBS_VALUE = 100*OBS_VALUE/OBS_VALUE[1]) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = Produit_conso_menages)) +
theme_minimal() + ylab("Consommation mensuelle") + xlab("") +
theme(legend.title = element_blank(),
axis.text.x = element_text(angle = 45, vjust = 1, hjust = 1),
legend.position = c(0.2, 0.15)) +
scale_x_date(breaks = "3 months",
labels = date_format("%b %Y")) +
scale_y_log10(breaks = seq(10, 300, 5))
invisible(Sys.setlocale("LC_TIME", "fr_CA.UTF-8"))
`CONSO-MENAGES-2020` |>
mutate(methode = "Méthode 2020") |>
bind_rows(`CONSO-MENAGES-2014` |>
mutate(methode = "Méthode 2014, octobre 2023")) |>
bind_rows(`CONSO-MENAGES-2014-vieux` |>
mutate(methode = "Méthode 2014, septembre 2023")) |>
filter(PRODUIT_CONSO_MENAGES %in% c("ALIMENTAIRE","ALIMENTAIRE-HORS-TABAC")) |>
month_to_date() |>
filter(date >= as.Date("2019-01-01")) |>
group_by(Produit_conso_menages, methode) |>
arrange(date) |>
mutate(OBS_VALUE = 100*OBS_VALUE/OBS_VALUE[1]) |>
select(date, OBS_VALUE, Produit_conso_menages, methode) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = Produit_conso_menages, linetype = methode)) +
theme_minimal() + ylab("Consommation mensuelle (Base 100 = Janvier 2019)") + xlab("") +
theme(legend.title = element_blank(),
axis.text.x = element_text(angle = 45, vjust = 1, hjust = 1),
legend.position = c(0.2, 0.3)) +
scale_x_date(breaks = "3 months",
labels = date_format("%B %Y")) +
scale_y_log10(breaks = seq(10, 300, 1),
labels = percent(seq(10, 300, 1)/100-1, acc = 1))
invisible(Sys.setlocale("LC_TIME", "fr_CA.UTF-8"))
`CONSO-MENAGES-2020` |>
mutate(methode = "Méthode 2020") |>
bind_rows(`CONSO-MENAGES-2014` |>
mutate(methode = "Méthode 2014, octobre 2023")) |>
bind_rows(`CONSO-MENAGES-2014-vieux` |>
mutate(methode = "Méthode 2014, septembre 2023")) |>
filter(PRODUIT_CONSO_MENAGES %in% c("ALIMENTAIRE","ALIMENTAIRE-HORS-TABAC")) |>
month_to_date() |>
filter(date >= as.Date("2020-01-01")) |>
group_by(Produit_conso_menages, methode) |>
arrange(date) |>
mutate(OBS_VALUE = 100*OBS_VALUE/OBS_VALUE[1]) |>
select(date, OBS_VALUE, Produit_conso_menages, methode) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = Produit_conso_menages, linetype = methode)) +
theme_minimal() + ylab("Consommation mensuelle (Base 100 = Janvier 2020)") + xlab("") +
theme(legend.title = element_blank(),
axis.text.x = element_text(angle = 45, vjust = 1, hjust = 1),
legend.position = c(0.2, 0.3)) +
scale_x_date(breaks = "3 months",
labels = date_format("%B %Y")) +
scale_y_log10(breaks = seq(10, 300, 1),
labels = percent(seq(10, 300, 1)/100-1, acc = 1))
invisible(Sys.setlocale("LC_TIME", "fr_CA.UTF-8"))
`CONSO-MENAGES-2020` |>
mutate(methode = "Méthode 2020") |>
bind_rows(`CONSO-MENAGES-2014` |>
mutate(methode = "Méthode 2014, octobre 2023")) |>
bind_rows(`CONSO-MENAGES-2014-vieux` |>
mutate(methode = "Méthode 2014, septembre 2023")) |>
filter(PRODUIT_CONSO_MENAGES %in% c("ALIMENTAIRE","ALIMENTAIRE-HORS-TABAC")) |>
month_to_date() |>
filter(date >= as.Date("2020-01-01"),
date <= as.Date("2024-05-01")) |>
group_by(Produit_conso_menages, methode) |>
arrange(date) |>
mutate(OBS_VALUE = 100*OBS_VALUE/OBS_VALUE[1]) |>
select(date, OBS_VALUE, Produit_conso_menages, methode) |>
mutate(methode = factor(methode, levels = c("Méthode 2014, septembre 2023",
"Méthode 2014, octobre 2023",
"Méthode 2020"))) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = Produit_conso_menages, linetype = methode)) +
theme_minimal() + ylab("Consommation mensuelle (Base 100 = Janvier 2020)") + xlab("") +
theme(legend.title = element_blank(),
axis.text.x = element_text(angle = 45, vjust = 1, hjust = 1),
legend.position = c(0.2, 0.25)) +
scale_x_date(breaks = "3 months",
labels = date_format("%B %Y")) +
scale_y_log10(breaks = seq(10, 300, 1),
labels = percent(seq(10, 300, 1)/100-1, acc = 1))
invisible(Sys.setlocale("LC_TIME", "fr_CA.UTF-8"))
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("BIENS", "ALIMENTAIRE")) |>
month_to_date() |>
filter(date >= as.Date("2022-01-01")) |>
group_by(Produit_conso_menages) |>
arrange(date) |>
mutate(OBS_VALUE = 100*OBS_VALUE/OBS_VALUE[1]) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = Produit_conso_menages)) +
theme_minimal() + ylab("Consommation mensuelle\n(Base 100 = Janvier 2022)") + xlab("") +
theme(legend.title = element_blank(),
axis.text.x = element_text(angle = 45, vjust = 1, hjust = 1),
legend.position = c(0.2, 0.2)) +
scale_x_date(breaks = "2 months",
labels = date_format("%B %Y")) +
scale_y_log10(breaks = seq(10, 300, 1))
invisible(Sys.setlocale("LC_TIME", "fr_CA.UTF-8"))
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("BIENS", "ALIMENTAIRE")) |>
month_to_date() |>
filter(date >= as.Date("2019-12-01")) |>
group_by(Produit_conso_menages) |>
arrange(date) |>
mutate(OBS_VALUE = 100*OBS_VALUE/OBS_VALUE[1]) |>
mutate(OBS_VALUE = ifelse(year(date) == 2020 & month(date) %in% c(3, 4, 5, 10, 11), NA, OBS_VALUE)) |>
mutate(OBS_VALUE = ifelse(year(date) == 2021 & month(date) %in% c(3, 4), NA, OBS_VALUE)) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = Produit_conso_menages)) +
theme_minimal() + ylab("Consommation mensuelle\n(Base 100 = Décembre 2019)") + xlab("") +
theme(legend.title = element_blank(),
axis.text.x = element_text(angle = 45, vjust = 1, hjust = 1),
legend.position = c(0.2, 0.2)) +
scale_x_date(breaks = "2 months",
labels = date_format("%B %Y")) +
scale_y_log10(breaks = seq(10, 300, 1)) +
geom_rect(data = data_frame(start = as.Date("2020-02-01"),
end = as.Date("2020-06-01")),
aes(xmin = start, xmax = end, ymin = 0, ymax = +Inf), fill = viridis(4)[4], alpha = 0.2)+
geom_rect(data = data_frame(start = as.Date("2020-09-01"),
end = as.Date("2020-12-01")),
aes(xmin = start, xmax = end, ymin = 0, ymax = +Inf), fill = viridis(4)[4], alpha = 0.2)+
geom_rect(data = data_frame(start = as.Date("2021-02-01"),
end = as.Date("2021-05-01")),
aes(xmin = start, xmax = end, ymin = 0, ymax = +Inf), fill = viridis(4)[4], alpha = 0.2)
invisible(Sys.setlocale("LC_TIME", "fr_CA.UTF-8"))
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("BIENS", "ALIMENTAIRE")) |>
month_to_date() |>
filter(date >= as.Date("2021-07-01")) |>
group_by(Produit_conso_menages) |>
arrange(date) |>
mutate(OBS_VALUE = 100*OBS_VALUE/OBS_VALUE[1]) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = Produit_conso_menages)) +
theme_minimal() + ylab("Consommation mensuelle\n(Base 100 = Juillet 2021)") + xlab("") +
theme(legend.title = element_blank(),
axis.text.x = element_text(angle = 45, vjust = 1, hjust = 1),
legend.position = c(0.2, 0.2)) +
scale_x_date(breaks = "2 months",
labels = date_format("%B %Y")) +
scale_y_log10(breaks = seq(10, 300, 1))
invisible(Sys.setlocale("LC_TIME", "fr_CA.UTF-8"))
`CONSO-MENAGES-2020` |>
mutate(methode = "Méthode 2020") |>
bind_rows(`CONSO-MENAGES-2014` |>
mutate(methode = "Méthode 2014, octobre 2023")) |>
bind_rows(`CONSO-MENAGES-2014-vieux` |>
mutate(methode = "Méthode 2014, septembre 2023")) |>
filter(PRODUIT_CONSO_MENAGES %in% c("BIENS","ALIMENTAIRE-HORS-TABAC")) |>
month_to_date() |>
filter(date >= as.Date("2021-07-01")) |>
group_by(Produit_conso_menages, methode) |>
arrange(date) |>
mutate(OBS_VALUE = 100*OBS_VALUE/OBS_VALUE[1]) |>
select(date, OBS_VALUE, Produit_conso_menages, methode) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = Produit_conso_menages, linetype = methode)) +
theme_minimal() + ylab("Consommation mensuelle (Base 100 = Février 2021)") + xlab("") +
theme(legend.title = element_blank(),
axis.text.x = element_text(angle = 45, vjust = 1, hjust = 1),
legend.position = c(0.2, 0.3)) +
scale_x_date(breaks = "1 month",
labels = date_format("%B %Y")) +
scale_y_log10(breaks = seq(10, 300, 1))
invisible(Sys.setlocale("LC_TIME", "fr_CA.UTF-8"))
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("BIENS", "ALIMENTAIRE", "ALIMENTAIRE-HORS-TABAC")) |>
month_to_date() |>
filter(date >= as.Date("2021-12-01")) |>
group_by(Produit_conso_menages) |>
arrange(date) |>
mutate(OBS_VALUE = 100*OBS_VALUE/OBS_VALUE[1]) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = Produit_conso_menages)) +
theme_minimal() + ylab("Consommation mensuelle (Base 100 = Déc. 2021)") + xlab("") +
theme(legend.title = element_blank(),
axis.text.x = element_text(angle = 45, vjust = 1, hjust = 1),
legend.position = c(0.2, 0.2)) +
scale_x_date(breaks = "2 months",
labels = date_format("%B %Y")) +
scale_y_log10(breaks = seq(10, 300, 1))
invisible(Sys.setlocale("LC_TIME", "fr_CA.UTF-8"))
`CONSO-MENAGES-2020` |>
mutate(methode = "Base 2020") |>
bind_rows(`CONSO-MENAGES-2014` |>
mutate(methode = "Base 2014, méthode 10/2023")) |>
bind_rows(`CONSO-MENAGES-2014-vieux` |>
mutate(methode = "Base 2014, méthode 09/2023")) |>
filter(PRODUIT_CONSO_MENAGES %in% c("BIENS","ALIMENTAIRE-HORS-TABAC")) |>
month_to_date() |>
filter(date >= as.Date("2021-12-01")) |>
group_by(Produit_conso_menages, methode) |>
arrange(date) |>
mutate(OBS_VALUE = 100*OBS_VALUE/OBS_VALUE[1]) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = Produit_conso_menages, linetype = methode)) +
theme_minimal() + ylab("Consommation mensuelle (Base 100 = Déc. 2021)") + xlab("") +
theme(legend.title = element_blank(),
axis.text.x = element_text(angle = 45, vjust = 1, hjust = 1),
legend.position = c(0.2, 0.3)) +
scale_x_date(breaks = "1 month",
labels = date_format("%B %Y")) +
scale_y_log10(breaks = seq(10, 300, 1))
invisible(Sys.setlocale("LC_TIME", "fr_CA.UTF-8"))
`CONSO-MENAGES-2020` |>
mutate(methode = "Base 2020") |>
bind_rows(`CONSO-MENAGES-2014` |>
mutate(methode = "Base 2014, méthode 10/2023")) |>
bind_rows(`CONSO-MENAGES-2014-vieux` |>
mutate(methode = "Base 2014, méthode 09/2023")) |>
filter(PRODUIT_CONSO_MENAGES %in% c("ALIMENTAIRE-HORS-TABAC")) |>
month_to_date() |>
filter(date >= as.Date("2021-12-01")) |>
group_by(Produit_conso_menages, methode) |>
arrange(date) |>
mutate(OBS_VALUE = 100*OBS_VALUE/OBS_VALUE[1]) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = methode)) +
theme_minimal() + ylab("Consommation mensuelle (Base 100 = Déc. 2021)") + xlab("") +
theme(legend.title = element_blank(),
axis.text.x = element_text(angle = 45, vjust = 1, hjust = 1),
legend.position = c(0.2, 0.3)) +
scale_x_date(breaks = "1 month",
labels = date_format("%B %Y")) +
scale_y_log10(breaks = seq(10, 300, 1)) +
geom_label(data = . %>% filter(date %in% c(as.Date("2023-08-01"))),
aes(x = date, y = OBS_VALUE, label = percent(OBS_VALUE/100-1, acc = 0.1), color = methode))
invisible(Sys.setlocale("LC_TIME", "fr_CA.UTF-8"))
`CONSO-MENAGES-2020` |>
mutate(methode = "Méthode 2020") |>
bind_rows(`CONSO-MENAGES-2014` |>
mutate(methode = "Méthode 2014, octobre 2023")) |>
bind_rows(`CONSO-MENAGES-2014-vieux` |>
mutate(methode = "Méthode 2014, septembre 2023")) |>
filter(PRODUIT_CONSO_MENAGES %in% c("BIENS","ALIMENTAIRE-HORS-TABAC")) |>
month_to_date() |>
filter(date >= as.Date("2022-02-01")) |>
group_by(Produit_conso_menages, methode) |>
arrange(date) |>
mutate(OBS_VALUE = 100*OBS_VALUE/OBS_VALUE[1]) |>
select(date, OBS_VALUE, Produit_conso_menages, methode) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = Produit_conso_menages, linetype = methode)) +
theme_minimal() + ylab("Consommation mensuelle (Base 100 = Février 2021)") + xlab("") +
theme(legend.title = element_blank(),
axis.text.x = element_text(angle = 45, vjust = 1, hjust = 1),
legend.position = c(0.2, 0.3)) +
scale_x_date(breaks = "1 month",
labels = date_format("%B %Y")) +
scale_y_log10(breaks = seq(10, 300, 1))
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("BIENS", "ALIMENTAIRE")) |>
month_to_date() |>
group_by(PRODUIT_CONSO_MENAGES) |>
arrange(date) |>
mutate(OBS_VALUE = 100*OBS_VALUE/OBS_VALUE[1]) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = PRODUIT_CONSO_MENAGES)) +
theme_minimal() + ylab("Consommation mensuelle") + xlab("") +
theme(legend.title = element_blank(),
legend.position = c(0.2, 0.9)) +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(100, 300, 10))
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("BIENS", "ALIMENTAIRE")) |>
month_to_date() |>
filter(date >= as.Date("1996-01-01")) |>
group_by(PRODUIT_CONSO_MENAGES) |>
arrange(date) |>
mutate(OBS_VALUE = 100*OBS_VALUE/OBS_VALUE[1]) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = PRODUIT_CONSO_MENAGES)) +
theme_minimal() + ylab("Consommation mensuelle") + xlab("") +
theme(legend.title = element_blank(),
legend.position = c(0.2, 0.9)) +
scale_x_date(breaks = seq(1950, 2100, 2) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(10, 300, 10))
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("BIENS", "ALIMENTAIRE")) |>
month_to_date() |>
filter(date >= as.Date("2005-01-01")) |>
group_by(PRODUIT_CONSO_MENAGES) |>
arrange(date) |>
mutate(OBS_VALUE = 100*OBS_VALUE/OBS_VALUE[1]) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = PRODUIT_CONSO_MENAGES)) +
theme_minimal() + ylab("Consommation mensuelle") + xlab("") +
theme(legend.title = element_blank(),
legend.position = c(0.2, 0.9)) +
scale_x_date(breaks = seq(1950, 2100, 2) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(10, 300, 10))
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("BIENS", "ALIMENTAIRE")) |>
month_to_date() |>
filter(date >= as.Date("2017-01-01")) |>
group_by(PRODUIT_CONSO_MENAGES) |>
arrange(date) |>
mutate(OBS_VALUE = 100*OBS_VALUE/OBS_VALUE[1]) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = PRODUIT_CONSO_MENAGES)) +
theme_minimal() + ylab("Consommation mensuelle") + xlab("") +
theme(legend.title = element_blank(),
legend.position = c(0.2, 0.3)) +
scale_x_date(breaks = seq(1950, 2100, 1) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(10, 300, 5))
invisible(Sys.setlocale("LC_TIME", "fr_CA.UTF-8"))
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("BIENS", "ALIMENTAIRE")) |>
month_to_date() |>
filter(date >= as.Date("2020-05-01")) |>
group_by(Produit_conso_menages) |>
arrange(date) |>
mutate(OBS_VALUE = 100*OBS_VALUE/OBS_VALUE[1]) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = Produit_conso_menages)) +
theme_minimal() + ylab("Consommation mensuelle") + xlab("") +
theme(legend.title = element_blank(),
axis.text.x = element_text(angle = 45, vjust = 1, hjust = 1),
legend.position = c(0.2, 0.1)) +
scale_x_date(breaks = "3 months",
labels = date_format("%b %Y")) +
scale_y_log10(breaks = seq(10, 300, 5))
invisible(Sys.setlocale("LC_TIME", "fr_CA.UTF-8"))
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("BIENS", "ALIMENTAIRE", "ALIMENTAIRE-HORS-TABAC")) |>
month_to_date() |>
filter(date >= as.Date("2022-01-01")) |>
group_by(Produit_conso_menages) |>
arrange(date) |>
mutate(OBS_VALUE = OBS_VALUE/OBS_VALUE[1]-1) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = Produit_conso_menages)) +
theme_minimal() + ylab("Consommation mensuelle (par rapport à Janvier 2022)") + xlab("") +
theme(legend.title = element_blank(),
axis.text.x = element_text(angle = 45, vjust = 1, hjust = 1),
legend.position = c(0.2, 0.2)) +
scale_x_date(breaks = "1 month",
labels = date_format("%B %Y")) +
scale_y_continuous(breaks = 0.01*seq(-100, 300, 1),
labels = percent_format(acc = 1))
invisible(Sys.setlocale("LC_TIME", "fr_CA.UTF-8"))
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("BIENS", "ALIMENTAIRE", "ALIMENTAIRE-HORS-TABAC")) |>
month_to_date() |>
filter(date >= as.Date("2022-02-01")) |>
group_by(Produit_conso_menages) |>
arrange(date) |>
mutate(OBS_VALUE = OBS_VALUE/OBS_VALUE[1]-1) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = Produit_conso_menages)) +
theme_minimal() + ylab("Consommation mensuelle (vs. Fév. 2022)") + xlab("") +
theme(legend.title = element_blank(),
axis.text.x = element_text(angle = 45, vjust = 1, hjust = 1),
legend.position = c(0.2, 0.2)) +
scale_x_date(breaks = "1 month",
labels = date_format("%B %Y")) +
scale_y_continuous(breaks = 0.01*seq(-100, 300, 1),
labels = percent_format(acc = 1))
invisible(Sys.setlocale("LC_TIME", "fr_CA.UTF-8"))
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("BIENS", "ALIMENTAIRE", "ALIMENTAIRE-HORS-TABAC")) |>
month_to_date() |>
filter(date >= Sys.Date() - months(24)) |>
group_by(Produit_conso_menages) |>
arrange(date) |>
mutate(OBS_VALUE = OBS_VALUE/OBS_VALUE[1]-1) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = Produit_conso_menages)) +
theme_minimal() + ylab("Consommation mensuelle (par rapport à Janvier 2022)") + xlab("") +
theme(legend.title = element_blank(),
axis.text.x = element_text(angle = 45, vjust = 1, hjust = 1),
legend.position = c(0.2, 0.2)) +
scale_x_date(breaks = "1 month",
labels = date_format("%B %Y")) +
scale_y_continuous(breaks = 0.01*seq(-100, 300, 1),
labels = percent_format(acc = 1))
invisible(Sys.setlocale("LC_TIME", "fr_CA.UTF-8"))
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("BIENS", "ALIMENTAIRE", "ALIMENTAIRE-HORS-TABAC")) |>
month_to_date() |>
filter(date >= Sys.Date() - months(18)) |>
group_by(Produit_conso_menages) |>
arrange(date) |>
mutate(OBS_VALUE = OBS_VALUE/OBS_VALUE[1]-1) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = Produit_conso_menages)) +
theme_minimal() + ylab("Consommation mensuelle (par rapport à Janvier 2022)") + xlab("") +
theme(legend.title = element_blank(),
axis.text.x = element_text(angle = 45, vjust = 1, hjust = 1),
legend.position = c(0.2, 0.2)) +
scale_x_date(breaks = "1 month",
labels = date_format("%B %Y")) +
scale_y_continuous(breaks = 0.01*seq(-100, 300, 1),
labels = percent_format(acc = 1))
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("BIENS", "BIENS-MANUFACTURES", "BIENS-FABRIQUES")) |>
month_to_date() |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = PRODUIT_CONSO_MENAGES)) +
xlab("") + ylab("") + theme_minimal() +
scale_x_date(breaks = "5 years",
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(0, 120, 5)) +
theme(legend.position = c(0.8, 0.2),
legend.title = element_blank())
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("BIENS", "BIENS-MANUFACTURES", "BIENS-FABRIQUES")) |>
month_to_date() |>
filter(date >= as.Date("1996-01-01")) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = PRODUIT_CONSO_MENAGES)) +
xlab("") + ylab("") + theme_minimal() +
scale_x_date(breaks = seq(1920, 2100, 2) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(0, 120, 5)) +
theme(legend.position = c(0.8, 0.2),
legend.title = element_blank())
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("ALIMENTAIRE", "ALIMENTAIRE-HORS-TABAC", "BIENS-DURABLES")) |>
month_to_date() |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = PRODUIT_CONSO_MENAGES)) +
xlab("") + ylab("") + theme_minimal() +
scale_x_date(breaks = seq(1920, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(0, 120, 1)) +
theme(legend.position = c(0.8, 0.2),
legend.title = element_blank())
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("MATERIELS-TRANSPORT", "EQUIPEMENT-LOGEMENT")) |>
month_to_date() |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = PRODUIT_CONSO_MENAGES)) +
xlab("") + ylab("") + theme_minimal() +
scale_x_date(breaks = seq(1920, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(0, 120, 1)) +
scale_color_manual(values = viridis(3)[1:2]) +
theme(legend.position = c(0.8, 0.2),
legend.title = element_blank())
`CONSO-MENAGES-2020` |>
filter(TIME_PERIOD %in% c("2021-12", "2023-05")) |>
select(TIME_PERIOD, PRODUIT_CONSO_MENAGES, PRODUIT_CONSO_MENAGES, OBS_VALUE) |>
spread(TIME_PERIOD, OBS_VALUE) |>
mutate(croissance = round(100*(`2023-05`/`2021-12`-1), 1)) |>
arrange(croissance) |>
print_table_conditional()| PRODUIT_CONSO_MENAGES | 2021-12 | 2023-05 | croissance |
|---|---|---|---|
| ALIMENTAIRE | 18.156 | 16.874 | -7.1 |
| ALIMENTAIRE-HORS-TABAC | 16.324 | 15.222 | -6.8 |
| ENERGIE_C2 | 3.735 | 3.586 | -4.0 |
| PRODUITS-PETROLIERS | 4.585 | 4.416 | -3.7 |
| EQUIPEMENT-LOGEMENT | 3.751 | 3.625 | -3.4 |
| BIENS | 47.657 | 46.446 | -2.5 |
| BIENS-FABRIQUES-AUTRES | 6.398 | 6.246 | -2.4 |
| BIENS-MANUFACTURES | 40.461 | 39.499 | -2.4 |
| ENERGIE_DEC2 | 8.228 | 8.081 | -1.8 |
| BIENS-DURABLES-EQUIPEMENT | 1.755 | 1.735 | -1.1 |
| ENERGIE_DE | 4.493 | 4.482 | -0.2 |
| ENERGIE_PETROLE | 3.644 | 3.678 | 0.9 |
| BIENS-FABRIQUES | 21.273 | 21.536 | 1.2 |
| TEXTILE | 4.205 | 4.310 | 2.5 |
| BIENS-DURABLES | 10.670 | 10.983 | 2.9 |
| MATERIELS-TRANSPORT | 5.164 | 5.621 | 8.8 |
invisible(Sys.setlocale("LC_TIME", "fr_CA.UTF-8"))
`CONSO-MENAGES-2020` |>
month_to_date() |>
filter(date >= as.Date("2022-01-01")) |>
group_by(Produit_conso_menages) |>
arrange(date) |>
mutate(OBS_VALUE = 100*OBS_VALUE/OBS_VALUE[1]) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = Produit_conso_menages)) +
theme_minimal() + ylab("Consommation mensuelle (Base 100 = Déc. 2021)") + xlab("") +
theme(legend.title = element_blank(),
axis.text.x = element_text(angle = 45, vjust = 1, hjust = 1),
legend.position = c(0.5, 0.3)) +
scale_x_date(breaks = "1 month",
labels = date_format("%B %Y")) +
scale_y_log10(breaks = seq(10, 300, 1)) +
guides(color=guide_legend(ncol=2))
invisible(Sys.setlocale("LC_TIME", "fr_CA.UTF-8"))
`CONSO-MENAGES-2020` |>
filter(PRODUIT_CONSO_MENAGES %in% c("PRODUITS-PETROLIERS", "ENERGIE_PETROLE")) |>
month_to_date() |>
filter(date >= as.Date("2021-12-01")) |>
group_by(Produit_conso_menages) |>
arrange(date) |>
mutate(OBS_VALUE = 100*OBS_VALUE/OBS_VALUE[1]) |>
ggplot() + geom_line(aes(x = date, y = OBS_VALUE, color = Produit_conso_menages)) +
theme_minimal() + ylab("Consommation mensuelle (Base 100 = Déc. 2021)") + xlab("") +
theme(legend.title = element_blank(),
axis.text.x = element_text(angle = 45, vjust = 1, hjust = 1),
legend.position = c(0.2, 0.2)) +
scale_x_date(breaks = "1 month",
labels = date_format("%B %Y")) +
scale_y_log10(breaks = seq(10, 300, 1))