In ggplot2, how do you customize the x-axis labels for a categorical variable category?
A. scale_x_continuous(labels = category)
B. theme(axis.text.x = element_text(labels = category))
C. labs(x = category)
D. scale_x_discrete(labels = category)
Answer: Option D

Join The Discussion