Examveda
Examveda

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


This Question Belongs to R Programming >> Data Visualization With Ggplot2

Join The Discussion

Related Questions on Data Visualization with ggplot2