country - public_data

Données - INSEE

Sheet1

Code
d1 |>
  filter(!is.na(valeur), !total100) |>
  filter(libelle %in% head(unique(libelle), 60)) |>
  mutate(lab = fct_inorder(libelle), serie = fct_inorder(serie)) |>
  ggplot(aes(x = serie, y = fct_rev(lab), fill = valeur)) +
  geom_tile(color = "white") +
  scale_x_discrete(labels = scales::label_wrap(12), position = "top") +
  scale_y_discrete(labels = scales::label_wrap(40)) +
  scale_fill_gradient(low = "#F4F8FD", high = bleu, name = "") +
  theme_pub(9) +
  labs(x = NULL, y = NULL, title = str_wrap("Sheet1", 75)) +
  theme(legend.position = "right", panel.grid = element_blank())