Project: part 2

Using the tourism data for plotting a interactive and static plot from. I worked with Carson Klemmer..

  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 since 2000. The amount of tourist has increased and will continue to.

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