search for: plotpolysonstaticmap

Displaying 1 result from an estimated 1 matches for "plotpolysonstaticmap".

2010 Jun 29
0
how to create a shape file from a polygone
Dear R-users, I have created a map with plot location using longitude/latitude coordinates with the PlotOnStaticMap() function of the RgoogleMaps package. Everything works fine until I try to put a polygon on the map. The polygon() function doesn?t work and I need to use the special function PlotPolysOnStaticMap() however this requires a shapefile (which I'm not sure what it is) and not XY coordinates. So my question is quite simple: How do I transform XY (lon/lat) coordinates into a shape file. My polygon: x.pol.mat<-c(-66.67,-66.46,-66.54,-66.82,-67.06,-66.97) y.pol.mat<-c(48.87,48.89,48.745...