1. Learn
  2. /
  3. Courses
  4. /
  5. Analyzing Survey Data in R

Exercise

Trend lines

Let's return to the bubble plot of Height versus Weight, colored by Gender, for 20 year olds. It's now time to add trends lines and compare the trend lines when we do and do NOT account for the survey weights.

Instructions 1/2

undefined XP
    1
    2
  • To the given bubble plot, add trend lines with linetype = 2 so that the lines are dashed.