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

Connected

Exercise

Survey-weighted scatter plots

In scatter plots, we can also account for the sampling design through the saturation of color or the transparency of the points. Let's see how these forms change the look of our scatter plot of height versus weight among 20 year olds.

Instructions 1/2

undefined XP
  • 1

    Using the dataset, NHANES20, create a scatter plot where Height is mapped to x, Weight is mapped to y, and WTMEC4YR to color. Don't include a legend.

  • 2

    Using the dataset, NHANES20, create a scatter plot where Height is mapped to x, Weight is mapped to y, and WTMEC4YR to alpha. Don't include a legend.