View source: R/fortify_hexagon.R
fortify_hexagon | R Documentation |
Creates the points that define a hexagon polygon for plotting
fortify_hexagon(data, sf_id, hex_size)
data |
a data frame created by the allocate function |
sf_id |
a string to indicate the column to identify individual polygons |
hex_size |
a float value in degrees for the diameter of the hexagons |
a data frame of the seven points used to draw a hexagon
# same column is used in create_centroids fortify_hexagon(data = tas_lga_hexctr, sf_id = "lga_code_2016", hex_size = 0.2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.