Description Usage Arguments Value Examples
This function takes regular shapefiles with a population field and firt converts the maps to a hexagonal grid, with data preserved. Note that this function is heavily based off of the original, though is an improvement.
1 | makeTilegram2(sp, cellsize = NULL)
|
cellsize |
The optional argument to change cellsize, Default is null, and probably best to leave empty |
shp |
The spatial object to be read in, providing the coordinates and the dbf |
The transformed spatial object and data frame, though polygons now in hexagon format.
1 2 | mi_shp <- readOGR(eguia_path, "mi_county_shp")
test_hexagon <- hexcarto2b(mi_shp)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.