Installing ggplot “package ‘ggplot’ is not available” and “subscript out of bounds” errors
You have the name of the package wrong - it is now ggplot2
following a major rewrite by Hadley some years ago. I presume the old ggplot
package has been removed from CRAN.
install.packages("ggplot2", dependencies = TRUE)
This is what I get:
R> install.packages("ggplot2", dependencies = TRUE)
Installing package(s) into ‘/home/gavin/R/libs’
(as ‘lib’ is unspecified)
trying URL 'http://cran.uk.r-project.org/src/contrib/ggplot2_0.8.9.tar.gz'
Content type 'application/x-gzip' length 2074749 bytes (2.0 Mb)
opened URL
==================================================
downloaded 2.0 Mb
* installing *source* package ‘ggplot2’ ...
** R
** data
** moving datasets to lazyload DB
** inst
** help
*** installing help indices
** building package indices ...
** testing if installed package can be loaded
* DONE (ggplot2)
The downloaded packages are in
‘/tmp/RtmpPcn8bl/downloaded_packages’