A

Admin • 833.24K Points
Coach

Q. In ggplot2, how do you add a color gradient to a scatter plot based on a numeric variable color_var?

  • (A) scale_fill_gradient(low = "blue", high = "red")
  • (B) color_gradient(low = "blue", high = "red")
  • (C) scale_color_gradient(low = "blue", high = "red")
  • (D) geom_point(aes(color = color_var), fill = "blue")
  • Correct Answer - Option(C)
  • Views: 22
  • Filed under category R Programming
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.