I have written following code
install.packages('ggplot2', dep = TRUE)
.libPaths(c("C:/Users/Dhanu/Documents/R/win-library/3.3", "C:/Program Files/R/R-3.3.3/library"))
library(ggplot2)
And it is giving me following error after installing ggplot2 library.
> library(ggplot2)
Error in library(ggplot2) : there is no package called ‘ggplot2’