Note: this blog is mainly used to prepare data, for plotting code, see:

O'Reilly 2013 - R Graphics Cookbook

ggplot2 cheatsheet

Be Awesome in ggplot2: A Practical Guide, (bak)

3D PLOT

scatter

OBS: order of using commands.

surface

OBS: order of using commands.

3rd dim as group for plot

(......