grid_auto function

Generate a grid automatically from a country/continent name or a SpatialPolygonsDataFrame or sf polygons