ssa_male <- readr::read____(____________)
ssa_female <- readr::read____(____________)Lab 10: Import Data
Note
- If you haven’t, install and load the
tidyversepackage.
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_maleandssa_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) forMaleto the plot. The color is blue.
lines(x = _____, y = _____, col = ______)