Project Part 2

Interactive and static plots of percentage of workforce in Industry by region

introduction

  1. Packages I will use to read in and plot the data
  1. Read in the data from part 1
RInd <- read_csv(here::here("Regional_industry.csv"))

Interactive graph

RInd %>%
  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")

Static Graph

ggplot(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

ggsave(filename = here::here("_posts/2022-05-17-project-part-2/preview.png"))