T203 - Salaire brut annuel, par secteur détaillé - dads2007_T203

Données - INSEE

T203 - Salaire brut annuel, par secteur détaillé

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 = valeur, y = fct_rev(lab), fill = serie)) +
  geom_col(position = position_dodge(width = 0.8), width = 0.75) +
  facet_grid(section ~ ., scales = "free_y", space = "free_y", labeller = labeller(section = scales::label_wrap(14))) +
  scale_y_discrete(labels = scales::label_wrap(40)) +
  scale_fill_brewer(palette = "Set2", name = NULL, labels = scales::label_wrap(30)) +
  theme_pub(10) +
  labs(x = "", y = NULL,
       title = str_wrap("T203 - Salaire brut annuel, par secteur détaillé", 75)) +
  guides(fill = guide_legend(ncol = 2))

T203 - Salaire brut annuel, par secteur détaillé

Code
d2 |>
  filter(!is.na(valeur), !total100) |>
  filter(libelle %in% head(unique(libelle), 60)) |>
  mutate(lab = fct_inorder(libelle), serie = fct_inorder(serie)) |>
  ggplot(aes(x = valeur, y = fct_rev(lab), fill = serie)) +
  geom_col(position = position_dodge(width = 0.8), width = 0.75) +
  facet_grid(section ~ ., scales = "free_y", space = "free_y", labeller = labeller(section = scales::label_wrap(14))) +
  scale_y_discrete(labels = scales::label_wrap(40)) +
  scale_fill_brewer(palette = "Set2", name = NULL, labels = scales::label_wrap(30)) +
  theme_pub(10) +
  labs(x = "", y = NULL,
       title = str_wrap("T203 - Salaire brut annuel, par secteur détaillé", 75)) +
  guides(fill = guide_legend(ncol = 2))

T203 - Salaire brut annuel, par secteur détaillé

Code
d3 |>
  filter(!is.na(valeur), !total100) |>
  filter(libelle %in% head(unique(libelle), 60)) |>
  mutate(lab = fct_inorder(libelle), serie = fct_inorder(serie)) |>
  ggplot(aes(x = valeur, y = fct_rev(lab), fill = serie)) +
  geom_col(position = position_dodge(width = 0.8), width = 0.75) +
  facet_grid(section ~ ., scales = "free_y", space = "free_y", labeller = labeller(section = scales::label_wrap(14))) +
  scale_y_discrete(labels = scales::label_wrap(40)) +
  scale_fill_brewer(palette = "Set2", name = NULL, labels = scales::label_wrap(30)) +
  theme_pub(10) +
  labs(x = "", y = NULL,
       title = str_wrap("T203 - Salaire brut annuel, par secteur détaillé", 75)) +
  guides(fill = guide_legend(ncol = 2))