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

Connected

Exercise

Visualizing the weights

Graphics are a much better way of visualizing data than just staring at the raw data frame! Therefore, in this activity, we will load the data visualization package ggplot2 to create a histogram of the survey weights.

Instructions

100 XP
  • Load the data visualization package ggplot2.
  • From the pre-loaded data frame, ce, construct a histogram of the survey weights.
  • Remember that the survey weights are stored in the column labeled FINLWT21.