To install and load the current stable version of ggplot2
for your R installation use:
# install from CRAN
install.packages("ggplot2")
To install the development version from github use
# install.packages("devtools")
devtools::install_github("hadley/ggplot2")
Load into your current R session, and make an example.