makeTilegram2: Create a hexagonal map

Description Usage Arguments Value Examples

Description

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.

Usage

1
makeTilegram2(sp, cellsize = NULL)

Arguments

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

Value

The transformed spatial object and data frame, though polygons now in hexagon format.

Examples

1
2
mi_shp <- readOGR(eguia_path, "mi_county_shp")
test_hexagon <- hexcarto2b(mi_shp)

jcuriel-unc/hexcarto documentation built on Feb. 24, 2020, 5:33 a.m.