Table of contents


A new way of thinking about graphics

What is ggplot

ggplot2 is a system for declaratively creating graphics, based on The Grammar of Graphics.

You provide the data, tell ggplot2 how to map variables to aesthetics, what graphical primitives to use, and it takes care of the details.


It is in cran, so it is easy:

Remember than in your script the install.packages() command should allways be commented and at the beginning of the script.


There is an official cheatsheet here: