<- readr::read____(____________)
ssa_male <- readr::read____(____________) ssa_female
Lab 10: Import Data
Note
- If you haven’t, install and load the
tidyverse
package.
In lab.qmd ## Lab 10
section,
- Import ssa_male_prob.csv and ssa_female_prob.Rds in the data folder using
read_csv()
and call themssa_male
andssa_female
, respectively.
- Plot
Age
(x-axis) vs.LifeExp
(y-axis) forFemale
. The type should be “line”, and the line color is red. Add x-label, y-label and title to your plot.
plot(x = _____, y = _____, type = ______, col = ______,
xlab = ______, ylab = _______, main = ____________)
- Use
lines()
to add a line ofAge
(x-axis) vs.LifeExp
(y-axis) forMale
to the plot. The color is blue.
lines(x = _____, y = _____, col = ______)