ComeçarComece de graça

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.

Este exercício faz parte do curso

Analyzing Survey Data in R

Ver curso

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

# Add proportions to table
tab_w <- tab_w %>%
  as.data.frame() %>%
  ___(Prop = Freq/___)
Editar e executar o código