#274 Map a variable to ggplot2 Scatterplot

#274 Map a variable to scatterplot | ggplot2

#274 Map a variable to a ggplot2 scatterplot

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.