Project Part 2

Worked with Kimberly Cobarruviaz. Interactive and static plots of Tourist Arrivals by Region from 2000 to 2018.

  1. Packages I will use to read in and plot the data.
  1. Read the data in from part 1.
regional_tourism <- read_csv(here::here("international-tourist-arrivals-by-world-region.csv"))

Interactive Graph

regional_tourism %>% 
  group_by(Region) %>% 
  e_chart(x = Year) %>% 
  e_river(serie = `International Tourist Arrivals`, legend = FALSE) %>% 
  e_tooltip(trigger = "axis") %>% 
  e_title(text = "Annual Tourist Arrivals by Region", subtext = "Source: Our World in Data", sublink = "https://ourworldindata.org/grapher/international-tourist-arrivals-by-world-region", left = "center") %>% 
  e_theme("roma")

Static Graph

regional_tourism %>% 
  ggplot(aes(x = Year, y = `International Tourist Arrivals`,
             fill = Region)) +
  geom_area() +
  theme_classic() +
  theme(legend.position = "bottom") +
  labs( y = "in millions of arrivals",
        fill = NULL)

These plots show a steady increase in tourist arrivals since 2000. Tourist arrivals continue to increase.

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