เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

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.

แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร

Inference for Categorical Data in R

ดูคอร์ส

แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ

ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์

# Plot distribution of sex filled by cappun
___(___, aes(x = ___, fill = ___)) +
  # Add bar layer
  ___(position = "___")
แก้ไขและรันโค้ด