Examveda

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


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

Join The Discussion

Related Questions on Data Visualization with ggplot2