πŸ“Š R Programming
Q. 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)
πŸ’¬ Discuss
βœ… Correct Answer: (C) geom_bar(aes(x = category, y = count))

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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