Session Ready
Exercise

Plot factor counts

In this exercise, you'll use ggplot2 to make a bar chart with one per level of the skill factor we just made, where the height of the bar shows the number of bakers in each skill level.

Notice a big difference between the data here and the data we have used before to make a bar chart- here, you want the height of the bars to be represent the number of rows in the bakers data in each skill level. This is compared to bar charts we made where the height represented values in the data (when you used geom_col()).

Instructions 1/2
undefined XP
  • 1

    Using the bakers data, plot the counts of bakers by each skill level, coloring the bars for series winners.

    • 2

      Edit your plot code to reverse the order of the skill factor levels along the x-axis.