Re: [R] Clip a contour with shapefile while using contourplot

2013-03-24 Thread Paul Murrell
Hi Below is some code that does what I think you want by drawing a path based on the map data. This does some grubby low-level work with the 'sp' objects that someone else may be able to tidy up # The 21st polygon in 'hello' is the big outer boundary # PLUS the 20 other inner holes map <- a

[R] Clip a contour with shapefile while using contourplot

2013-02-14 Thread Janesh Devkota
Hi, I have done the interpolation for my data and I was able to create the contours in multipanel with the help of Pascal. Now, I want to clip the contour with the shapefile. I want only the portion of contour to be displayed which falls inside the boundary of the shapefile. The data mydata.csv ca