Lab 00: Global Health

Author

YOUR NAME HERE

Published

August 26, 2024

Your First Data Visualization

Exercise 1

  1. YOUR ANSWER HERE

  2. YOUR ANSWER HERE

library(tidyverse)
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr     1.1.4     ✔ readr     2.1.5
✔ forcats   1.0.0     ✔ stringr   1.5.1
✔ ggplot2   3.5.1     ✔ tibble    3.2.1
✔ lubridate 1.9.4     ✔ tidyr     1.3.1
✔ purrr     1.0.2     
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library(gapminder)

gapminder <- gapminder::gapminder

gapminder_filtered <- gapminder %>% 
  filter(country %in% c("United States", "Canada", "Mexico"))

ggplot(data = gapminder_filtered) +
  geom_line(aes(x = year, y = lifeExp, color = country)) +
  scale_color_viridis_d() +
  ylim(0, 90) +
  theme_minimal()

Exercise 2

  1. YOUR ANSWER HERE

  2. YOUR ANSWER HERE

Creating objects in R

x <- 9

Exercise 3

# your code here - remove the hashtag! 

Exercise 4

[This exercise is completed by making changes to the top of your .qmd document]

Exercise 5

[This exercise is completed by turning in your final .html document on Canvas]