Error installing ggplot2 in rstudio

library(ggplot)
Error in library(ggplot) : there is no package called ‘ggplot’

Hmm. It looks like the munsell package didnt load properly (a few lines below ggplot2 highlight), so that might hold things back.

Also, the library is ggplot2, while the main function is ggplot.

I'm pretty sure you had an issue that all of us had:

If you try running the command again, it should work now.

Tried installing munsell still no luck - below is snapshot what i am getting right now -

I just uninstalled R v3.2 and rstudio
reinstalled latest version of R and rstudio and it fixed the issue
Now i can install packages including ggplot2

1 Like