Interactive and static plots of percentage of workforce in Industry by region
dataMin
and dataMax
; name axis; relocate name so it does not overlap with subtitleRInd %>%
group_by(Region) %>%
mutate(Employment = round(Employment, 2)) %>%
e_charts(x = Year) %>%
e_x_axis(min = "dataMin", max = "dataMax", name = "Year", nameLocation = "middle") %>%
e_y_axis(min = 15, name = "% of workforce in Industry", nameLocation = "middle") %>%
e_line(serie = Employment, legend=FALSE) %>%
e_tooltip(trigger = "axis") %>%
e_title(text = "Percentage of workforce in Industry, by world region",
subtext = "Between 1991 and 2017, source: Our world in Data",
sublink = "https://ourworldindata.org/grapher/industry-share-of-total-emplyoment?tab=chart")
lwd
to make the lines larger so they are more visibleggplot(RInd, aes(x = Year, y = Employment, color = Region)) +
geom_line(lwd = 2) +
labs(y = "Workforce employed in industry as %") +
theme_minimal()
These graphs shows a comparatively steady ~+-5% employment in the world, but relatively drastic decreases in first world regions, particularly western Europe, with a general climb elsewhere