BaşlayınÜcretsiz Başlayın

Conditional bar chart

Now, if you want to break down the distribution of alignment based on gender, you're looking for conditional distributions.

You could make these by creating multiple filtered datasets (one for each gender) or by faceting the plot of alignment based on gender. As a point of comparison, we've provided your plot of the marginal distribution of alignment from the last exercise.

Bu egzersiz

Exploratory Data Analysis in R

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

Create a bar chart of align faceted by gender.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Plot of alignment broken down by gender
ggplot(___, aes(x = ___)) + 
  geom_bar() +
  facet_wrap(~ ___)
Kodu Düzenle ve Çalıştır