1

How do you create a bar plot in ggplot2 for a categorical variable named category and its counts?

Correct Answer: geom_bar(aes(x = category, y = count))

Make the most of this question

This page focuses on one R Programming MCQs question from Programming. After checking the answer, return to the topic list to practice more or run a timed set.

R Programming MCQs MCQ: How do you create a bar plot in ggplot2 for a categorical variable named category and its counts? | Extra Education