install older packages using devtools
require(devtools) install_version("ggplot2", version = "0.9.1", repos = "http://cran.us.r-project.org")