1

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

Correct Answer: scale_color_gradient(low = "blue", high = "red")

Make the most of this question

This page focuses on one R Programming MCQs question from Programming. After checking the answer, return to the topic list to practice more or run a timed set.

R Programming MCQs MCQ: In ggplot2, how do you add a color gradient to a scatter plot based on a numeric variable color_var? | Extra Education