<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"> Dear r-siggers,<div><br></div><div> Does anybody know how to clip, or cut a map using a previous loaded shapefile? To produce the attached map, I'm using the following code:</div><div> </div><div>image(lon,lat,testedec1[111:133,15:43],col=rainbow(10))</div><div>par(new=T)</div><div>plot(brazil)</div><div><br></div><div> Where "brazil" is a shapefile loaded with maptools library. Is it possible to use this shape as a mask to filter the map values? The result would be only the values which are inside the contour...</div><div><br></div><div> Thanks in advance,</div><div><br></div><div> Thiago Veloso.</div></td></tr></table><br>