Choose from methods "kde2d" and "bkde2D",
and various return geometries
st_density( x, return_geometry = "point", method = "kde2d", bw = NULL, n = 200, bins = NULL, range.x = NULL, truncate = TRUE ) # S3 method for sfc st_density( x, return_geometry = "point", method = "kde2d", bw = NULL, n = NULL, bins = NULL, range.x = NULL, truncate = TRUE ) # S3 method for sf st_density( x, return_geometry = "point", method = "kde2d", bw = NULL, n = NULL, bins = NULL, range.x = NULL, truncate = TRUE )
| x | (sf/sfc) Spatial data |
|---|---|
| return_geometry | (character) What gets returned? |
| method | (character) How should density be computed? |
| bw | (numeric) Binwidth |
| n | (numeric) Grid size |
| bins | (numeric) Number of contour bins |
| range.x | (numeric-list) See |
| truncate | (logical) See |