Les comptes de la santé - Partage volume-prix - comptes_de_la_sante_partage_volume_prix

Données - DREES

Structure

Évolution de la CSBM en valeur

Code
`comptes-sante-vol-prix` |>
  filter(poste_code == "p00000_niv0", type == "valeur") |>
  ggplot() + geom_col(aes(x = annee, y = montant)) +
  theme_minimal() + xlab("") + ylab("Millions d'euros") +
  scale_x_continuous(breaks = scales::pretty_breaks()) +
  scale_y_continuous(labels = comma_format(big.mark = " ")) +
  theme(axis.text.x = element_text(angle = 45, vjust = 1, hjust = 1))

Décomposition volume / prix de la CSBM

Code
`comptes-sante-vol-prix` |>
  filter(poste_code == "p00000_niv0", type %in% c("tc_vol", "tc_prix")) |>
  mutate(type = recode(type, tc_vol = "Volume", tc_prix = "Prix")) |>
  ggplot() + geom_col(aes(x = annee, y = montant, fill = type), position = "dodge") +
  theme_minimal() + xlab("") + ylab("Glissement annuel (%)") +
  scale_x_continuous(breaks = scales::pretty_breaks(n = 10)) +
  scale_y_continuous(labels = function(x) paste0(x, "%")) +
  scale_fill_viridis_d() +
  theme(legend.position = "bottom", legend.title = element_blank(),
        axis.text.x = element_text(angle = 45, vjust = 1, hjust = 1))

Volume et prix par grand poste

Code
`comptes-sante-vol-prix` |>
  filter(poste_niveau == 1, type %in% c("tc_vol", "tc_prix")) |>
  mutate(type = recode(type, tc_vol = "Volume", tc_prix = "Prix"),
         poste_lib = gsub("^-", "", poste_lib)) |>
  ggplot() + geom_line(aes(x = annee, y = montant, color = poste_lib)) +
  facet_wrap(~type) +
  theme_minimal() + xlab("") + ylab("Glissement annuel (%)") +
  scale_x_continuous(breaks = scales::pretty_breaks(n = 10)) +
  scale_y_continuous(labels = function(x) paste0(x, "%")) +
  scale_color_viridis_d() +
  theme(legend.position = "bottom", legend.title = element_blank(),
        axis.text.x = element_text(angle = 45, vjust = 1, hjust = 1))

Indice de prix de la CSBM

Code
`comptes-sante-vol-prix` |>
  filter(poste_code == "p00000_niv0", type == "i_prix") |>
  ggplot() + geom_line(aes(x = annee, y = montant)) +
  theme_minimal() + xlab("") + ylab("Indice de prix (base 100)") +
  scale_x_continuous(breaks = scales::pretty_breaks(n = 10))