Ggplot2 has an amazing feature: it allows to easily map a color to a variable. Here we plot the relationship between 2 variables and we add a third dimension: the color depends of another numeric variable. To adjust the color, there are several options described in the code below.

Not what you are looking for ? Make a new search !


Leave a Reply

Be the First to Comment!

Notify of