Ggplot2 allows to easily map a variable to an aesthetic. On the left, color and shape depend of a discrete variable (a factor). On the right, we used a continuous (numeric) variable for the mapping. To do so, the color, shape, opacity, size… arguments must be place into the aesthetic part of the code.

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



Leave a Reply

Notify of