get_polygon_heatmap | R Documentation |
If using a sf object, will use st_centroids Otherwise, need to ensure lng and lat columns are available
get_polygon_heatmap(df, crs_epsg = 4326, bw = 0.001, gsize = 500)
df |
data.frame ish or sf |
crs_epsg |
crs of the newly create polygon, default 4326 if inputing a df and not explicitely set |
bw |
bandwidth (same for both dimesions) |
gsize |
gid size (same for both dimesions) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.