1. 학습
  2. /
  3. 강의
  4. /
  5. Analyzing Survey Data in R

Connected

연습 문제

Graphing a categorical variable

It is a bit hard to compare the frequencies in tab_w since each frequency is a very large number. Let's add proportions to the table and produce a bar graph to better understand the distribution of depression.

지침 1/2

undefined XP
    1
    2
  • After converting tab_w to a data frame, add a column, called Prop, which contains the estimated proportions for each category of Depressed.