πŸ“Š R Programming
Q. 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)
πŸ’¬ Discuss
βœ… Correct Answer: (D) scale_x_discrete(labels = category)

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
120
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
87%
Success Rate