Exercise

Comparing distributions of high performers

You just performed a statistical test of the difference in high_performer distribution between men and women in this dataset. You can also visualize the difference with 100% stacked bar charts, as you did with job_level in the last chapter.

In this exercise, you'll use the same method you did before to visually compare the difference in the distribution of ratings given to men and women. You'll start by comparing the mix of high performers, and finish by comparing the distribution of all ratings.

Instructions 1/2

60 XP
    1
    2

Using geom_bar(), plot a 100% stacked bar chart with gender on the x-axis. Use fill = factor(high_performer) inside aes().