Vidyalelo
R Programming · Q5

Data Visualization with ggplot2

Programming · R Programming · question 5

Q5

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))
Answer
D.
bar_plot(category, count)

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board