Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ggplot2 version 0.9.3.1 won't load into R 3.0.2

Tags:

r

ggplot2

I accidentally deleted my old version of ggplot2, so I downloaded the new version, and when I use

library(ggplot2)

I get the following error:

Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  there is no package called ‘colorspace’
 Error: package or namespace load failed for ‘ggplot2’

Does anyone know how to fix this? I tried reinstalling the older version of ggplot2 in both R 3.0.2 and R 3.0.1 (where it previously worked!) and it says the package is not available.

If anyone has a solution to how to fix the loading of the new version or how to get the old version work again, I would be indebted - I really need to plot something with ggplot!!

Cheers

like image 864
Sarah Avatar asked Oct 17 '13 18:10

Sarah


1 Answers

Install the missing colorspace package by executing the following line in R:

install.packages("colorspace")
like image 177
David Robinson Avatar answered Oct 17 '22 10:10

David Robinson