Skip to content

library(fields) world shift function not working anymore

1 message · Ray Brownrigg

#
Well, a workaround would be:
library(maps)
map("world2", ylim=c(-30,30), xlim = c(0,360), add = TRUE)

(at least until fields is updated).

                CHANGES IN R VERSION 2.0.0

    o   Subassignments involving NAs and with a replacement value of
        length > 1 are now disallowed.  (They were handled
        inconsistently in R < 2.0.0, see PR#7210.)  For data frames
        they are disallowed altogether, even for logical matrix indices
        (the only case which used to work).

Ray Brownrigg