[R] Plotting gps coordinates on Shapefile

2013-06-13 Thread L S
Hi, I am new to doing spatial analysis. I am interested in trying many things in R, but one of the first things I would like to do is plot all of my lat, lon points in a csv file within a window defined by a shapefile. I have read in the shape file by doing the following: border

Re: [R] Plotting gps coordinates on Shapefile

2013-06-13 Thread Barry Rowlingson
On Thu, Jun 13, 2013 at 6:26 AM, L S losedag...@gmail.com wrote: I realized that the coordinates are completely different. The coordinates in my data file (i.e. my csv file) are traditional GPS coordinates (e.g. 39.17 or 76.37). The shapefile however has x,y values such as 1416813.54262877

Re: [R] Plotting gps coordinates on Shapefile

2013-06-13 Thread MacQueen, Don
Your shapefile should include specifications for its coordinate system. Look for a file names maryland.prj in the same directory as maryland.shp. And that coordinate system should be included in your 'border' object. You might need to change to using readOGR() to load the shapefile into R. Use