How do you create a bar plot in ggplot2 for a categorical variable named category and its counts?
A. geom_bar(x = category, y = count)
B. geom_bar(mapping = aes(x = category, y = count))
C. geom_bar(aes(x = category, y = count))
D. bar_plot(category, count)
Answer: Option C

Join The Discussion