Added : How to draw a scatterplot and assign color as a function of another variable.