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)

Arguments

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)