get_polygon_heatmap: Create polygons that represent a 2D density out of points or...

View source: R/kde.R

get_polygon_heatmapR Documentation

Create polygons that represent a 2D density out of points or centroid of polygons

Description

If using a sf object, will use st_centroids Otherwise, need to ensure lng and lat columns are available

Usage

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)


cgauvi/sfSpHelpers documentation built on June 30, 2023, 10:48 p.m.