My attempt to use the package on a SpatialPolygonsDataFrame object.