I assume you are using ggplot 0.9 rather than ggplot 0.89
On the cited blogpage we have the following: "Apparently there is an
issue with ggplot 0.9 and the fortify which was not in ggplot 0.89"
The workaround, for now, is also on the webpage, although a bit
cryptic. What you need to do is to take the code at this cite:
https://github.com/hadley/ggplot2/blob/master/R/fortify-spatial.r
and run it before running the script provided on the blogpage.
Consider this as an interim fix, i am sure this will be fixed (if not
already) in updated versions of ggplot2.
regards,
einar
On May 26, 10:37 pm, K P <
ken...@kentonpowell.com> wrote:
> There is an amazing blog entry on creating great circles on a recentered
> worldmap, in ggplot here which is brilliant:
>
>
http://www.stanford.edu/~cengel/cgi-bin/anthrospace/great-circles-on-...
>
> However, I'm having a similar problem to another commenter with ggplot2 0.9:
>
> Error: could not find function "fortify.SpatialLinesDataFrame"
>
> I see a fix referenced here but implementation is a bit over my head (I
> don't quite follow):
>
>
http://www.stanford.edu/~cengel/cgi-bin/anthrospace/great-circles-on-...