Skip to content
Prev 14320 / 29559 Next

fortify.SpatialPolygonsDataFrame error

On 02/23/2012 04:48 PM, marion le texier wrote:
Hi Marion,

I have used fortify succesfully many times, so without a reproducible
example which reproduces your error, I have a hard time helping you.
Some notes:

- Try fortify(NUTS1, region = "id") on the unaltered NUTS1 object, i.e.
just after calling readShapeSpatial. If this works, the problem is not
in fortify, but in your code.
- There is no need to call fortify.SpatialPolygonsDataFrame explicitely,
fortify(NUTS1, region = "id") will do the job. The function will deduce
from its input object that it need to use fortify.SpatialPolygonsDataFrame.

good luck,
Paul