ggplot2

Post date: Jul 1, 2014 11:02:44 PM

There is a very good tutorial and examples: http://rstudio-pubs-static.s3.amazonaws.com/2176_75884214fc524dc0bc2a140573da38bb.html

Here is how to use ggplot2

Plot another graph on top of the one already existing.

rubies  <- data.frame(carat = c(3, 4, 5), price= c(5000, 5000, 5000))  ggplot(diamonds, aes(carat, price)) +    geom_point() +    geom_point(data = rubies, colour = "red")

from: http://stackoverflow.com/questions/2329851/how-can-i-add-another-layer-new-series-to-a-ggplot