Session Ready
Exercise

Death penalty and sex

While you're on the topic of death and the afterlife, take a look at another question from the GSS:

Do you favor or oppose the death penalty for people convicted of murder?

Your objective here is to explore if opinions on capital punishment (cappun) diverged between men and women in the gss2016 data.

Instructions 1/3
undefined XP
  • 1
  • 2
  • 3

Construct a bar plot to visualize the distribution of cappun broken down by sex. To enable easy comparison, be sure you're plotting proportions instead of counts (recall this means you set the position of the bars so that they "fill" the plot).