NV.SRV.EMPL.KD %>%
left_join(iso2c, by = "iso2c") %>%
group_by(iso2c, Iso2c) %>%
rename(value = `NV.SRV.EMPL.KD`) %>%
mutate(value = round(value, 1)) %>%
summarise(Nobs = n(),
`Year 1` = first(year),
`Value added in Services 1 (%)` = first(value),
`Year 2` = last(year),
`Value added in Services 2 (%)` = last(value)) %>%
arrange(-`Value added in Services 2 (%)`) %>%
{if (is_html_output()) datatable(., filter = 'top', rownames = F) else .}
NV.SRV.EMPL.KD %>%
filter(iso2c %in% c("JP")) %>%
left_join(iso2c, by = "iso2c") %>%
year_to_enddate %>%
ggplot(.) + geom_line(aes(x = date, y = NV.SRV.EMPL.KD)) +
xlab("") + ylab("Services, value added per worker") + theme_minimal() +
theme(legend.title = element_blank(),
legend.position = c(0.2, 0.2)) +
scale_x_date(breaks = seq(1950, 2020, 2) %>% paste0("-01-01") %>% as.Date,
labels = date_format("%y")) +
scale_y_continuous(breaks = seq(0, 200000, 10000),
labels = comma)
NV.SRV.EMPL.KD %>%
filter(iso2c %in% c("CN", "FR", "DE")) %>%
left_join(iso2c, by = "iso2c") %>%
year_to_date %>%
left_join(colors, by = c("Iso2c" = "country")) %>%
mutate(value = NV.SRV.EMPL.KD) %>%
ggplot(.) + geom_line(aes(x = date, y = value, color = color)) +
theme_minimal() + scale_color_identity() + add_3flags + theme_minimal() +
theme(legend.title = element_blank(),
legend.position = c(0.15, 0.9)) +
scale_x_date(breaks = seq(1950, 2020, 2) %>% paste0("-01-01") %>% as.Date,
labels = date_format("%y")) +
scale_y_continuous(breaks = seq(0, 200000, 10000),
labels = dollar_format()) +
xlab("") + ylab("Services, value added per worker")
NV.SRV.EMPL.KD %>%
filter(iso2c %in% c("ES", "IT", "PT")) %>%
left_join(iso2c, by = "iso2c") %>%
year_to_date %>%
left_join(colors, by = c("Iso2c" = "country")) %>%
mutate(value = NV.SRV.EMPL.KD) %>%
ggplot(.) + geom_line(aes(x = date, y = value, color = color)) +
theme_minimal() + scale_color_identity() + add_3flags + theme_minimal() +
theme(legend.title = element_blank(),
legend.position = c(0.15, 0.9)) +
scale_x_date(breaks = seq(1950, 2020, 2) %>% paste0("-01-01") %>% as.Date,
labels = date_format("%y")) +
scale_y_continuous(breaks = seq(0, 200000, 10000),
labels = dollar_format()) +
xlab("") + ylab("Services, value added per worker")
NV.SRV.EMPL.KD %>%
filter(iso2c %in% c("US", "GB", "ES")) %>%
left_join(iso2c, by = "iso2c") %>%
year_to_date %>%
left_join(colors, by = c("Iso2c" = "country")) %>%
mutate(value = NV.SRV.EMPL.KD) %>%
ggplot(.) + geom_line(aes(x = date, y = value, color = color)) +
theme_minimal() + scale_color_identity() + add_3flags + theme_minimal() +
theme(legend.title = element_blank(),
legend.position = c(0.15, 0.9)) +
scale_x_date(breaks = seq(1950, 2020, 2) %>% paste0("-01-01") %>% as.Date,
labels = date_format("%y")) +
scale_y_continuous(breaks = seq(0, 200000, 10000),
labels = dollar_format()) +
xlab("") + ylab("Services, value added per worker")
NV.SRV.EMPL.KD %>%
filter(iso2c %in% c("AR", "CL", "VE")) %>%
left_join(iso2c, by = "iso2c") %>%
year_to_date %>%
left_join(colors, by = c("Iso2c" = "country")) %>%
mutate(value = NV.SRV.EMPL.KD) %>%
ggplot(.) + geom_line(aes(x = date, y = value, color = color)) +
theme_minimal() + scale_color_identity() + add_3flags + theme_minimal() +
theme(legend.title = element_blank(),
legend.position = c(0.15, 0.9)) +
scale_x_date(breaks = seq(1950, 2020, 2) %>% paste0("-01-01") %>% as.Date,
labels = date_format("%y")) +
scale_y_continuous(breaks = seq(0, 200000, 10000),
labels = dollar_format()) +
xlab("") + ylab("Services, value added per worker")
NV.SRV.EMPL.KD %>%
filter(iso2c %in% c("GR", "HK", "MX")) %>%
left_join(iso2c, by = "iso2c") %>%
year_to_date %>%
left_join(colors, by = c("Iso2c" = "country")) %>%
mutate(value = NV.SRV.EMPL.KD) %>%
ggplot(.) + geom_line(aes(x = date, y = value, color = color)) +
theme_minimal() + scale_color_identity() + add_3flags + theme_minimal() +
theme(legend.title = element_blank(),
legend.position = c(0.15, 0.9)) +
scale_x_date(breaks = seq(1950, 2020, 2) %>% paste0("-01-01") %>% as.Date,
labels = date_format("%y")) +
scale_y_continuous(breaks = seq(0, 200000, 10000),
labels = dollar_format()) +
xlab("") + ylab("Services, value added per worker")