<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 14pt; color: rgb(0, 0, 0);">
Hi users,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 14pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 14pt; color: rgb(0, 0, 0);">
<span>I'm trying to plot a spatial graph from raster data (mask) using shapefile.<br>
</span>
<div>The problem is that I was able to only plot 34 pixels inside the shapefile area, using cnFillMode = "RasterFill". <br>
</div>
<div>However, I would like to not use this command (raster fill) and get a spatial graph better defined inside the shapefile, or increase the number of pixels within the area shapefile, with a better contour. But I am not getting a good result (see figure off_raster). I
 tried using the delta_kilometers, but it did not work.<br>
</div>
<div><br>
</div>
<div>Attached follows the data and script.<br>
</div>
<span>Thanks any help</span><br>
</div>
</body>
</html>