Installed R 2.15.2 on a new machine and ggplot2. The grid package is no longer supported in this latest version of R, but ggplot2 uses grid for the arrow() function, as in these examples.
http://docs.ggplot2.org/current/geom_segment.html
Haven’t been able to find a workaround. Any suggestions?
Maybe you think that
gridis no more supported because of the message displayed on its CRAN page ? But if it is written that Package ‘grid’ was removed from the CRAN repository, it is because it is now part of the base R distribution, as mentioned on Paul Murrell’sgridpage.So
library(grid)and thearrowfunction should work fine.Some of the confusion may be due to the fact that
gridwas loaded automatically by previous versions ofggplot(makinggridfunctions visible/accessible to the user); now it’s referred to via NAMESPACE imports instead, so you need to explicitly loadgridif you want to usegridfunctions (or look at their help pages).