I have the following shapefile imported into R:
Object of class SpatialPolygonsDataFrame
Coordinates:
min max
x -165.73220 -123.23912
y 29.55567 46.44211
Is projected: FALSE
proj4string : [+proj=longlat +ellps=WGS84]
I need to shift 'x' by adding 180 to the data column. I think the
'elide'
function in maptools can accomplish this but the following error
comes up
when I start the code:
coordinates(grid) <- c("x", "y")
Error in `coordinates<-`(`*tmp*`, value = c("x", "y")) : setting
coordinates cannot be done on Spatial objects, where they have
already been
set
My intended outcome is to be able to plot occurrence data from GBIF
onto
the polygon shapefile.
--
*Leigh A. Kroeger*
<*)))><
*PhD Candidate - Marine Ecology*
?????? ????? ?????
?????????? ?? ????
Dept. of Zoology
Tel Aviv University
Tel Aviv, 69978
Israel
Tel: +03 640-7830
[[alternative HTML version deleted]]