Industry as % of total employment – ILO modelled estimates, November 2019 - EMP_2IND_NOC_RT_A

Data - ILO

Warning: le package 'pryr' n'est pas disponible for this version of R

Une version de ce package pour votre version de R est peut-être disponible ailleurs,
Voyez des idées à
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
Warning in library(package, lib.loc = lib.loc, character.only = TRUE,
logical.return = TRUE, : aucun package nommé 'pryr' n'est trouvé

source

Code
EMP_2IND_NOC_RT_A %>%
  left_join(source, by = "source") %>%
  group_by(source, Source) %>%
  summarise(Nobs = n()) %>%
  arrange(-Nobs) %>%
  {if (is_html_output()) datatable(., filter = 'top', rownames = F) else .}

ref_area

Code
EMP_2IND_NOC_RT_A %>%
  left_join(ref_area, by = "ref_area") %>%
  group_by(ref_area, Ref_area) %>%
  summarise(Nobs = n()) %>%
  arrange(-Nobs) %>%
  mutate(Flag = gsub(" ", "-", str_to_lower(Ref_area)),
         Flag = paste0('<img src="../../bib/flags/vsmall/', Flag, '.png" alt="Flag">')) %>%
  select(Flag, everything()) %>%
  {if (is_html_output()) datatable(., filter = 'top', rownames = F, escape = F) else .}

Industry

Germany, France, U.S., Switzerland

Code
EMP_2IND_NOC_RT_A %>%
  year_to_date %>%
  filter(ref_area %in% c("DEU", "FRA", "USA", "CHE")) %>%
  left_join(ref_area, by = "ref_area") %>%
  mutate(obs_value = obs_value/100) %>%
  left_join(colors, by = c("Ref_area" = "country")) %>%
  ggplot() + scale_color_identity() + add_flags + theme_minimal() +
  geom_line(aes(x = date, y = obs_value, color = color)) +
  scale_x_date(breaks = seq(1920, 2100, 2) %>% paste0("-01-01") %>% as.Date,
               labels = date_format("%Y")) +
  theme(legend.position = c(0.85, 0.8),
        legend.title = element_blank()) +
  scale_y_continuous(breaks = 0.01*seq(0, 90, 2),
                     labels = percent_format(accuracy = 1)) +
  ylab("Industry (% of total employment)") + xlab("")

Sweden, U.K., Spain, Italy

Code
EMP_2IND_NOC_RT_A %>%
  year_to_date %>%
  filter(ref_area %in% c("SWE", "GBR", "ESP", "ITA")) %>%
  left_join(ref_area, by = "ref_area") %>%
  mutate(obs_value = obs_value/100) %>%
  left_join(colors, by = c("Ref_area" = "country")) %>%
  ggplot() + scale_color_identity() + add_flags + theme_minimal() +
  geom_line(aes(x = date, y = obs_value, color = color)) +
  scale_x_date(breaks = seq(1920, 2100, 2) %>% paste0("-01-01") %>% as.Date,
               labels = date_format("%Y")) +
  theme(legend.position = c(0.85, 0.8),
        legend.title = element_blank()) +
  scale_y_continuous(breaks = 0.01*seq(0, 90, 2),
                     labels = percent_format(accuracy = 1)) +
  ylab("Industry (% of total employment)") + xlab("")