Learn R Programming

spatialrisk (version 0.8.0)

Spatial Concentration and Radius-Based Risk Calculations

Description

Provides methods for spatial concentration and radius-based risk calculations. The package focuses on efficient determination of the sum of observations within a given radius, identifying local concentration hotspots, and aggregating point data to polygon geometries. These methods are useful for applications such as insurance, urban analytics, environmental exposure analysis, and other spatial point pattern workflows. The underlying maximum covering problem is described by Church (1974) .

Copy Link

Version

Install

install.packages('spatialrisk')

Monthly Downloads

716

Version

0.8.0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Martin Haringa

Last Published

May 4th, 2026

Functions in spatialrisk (0.8.0)

nl_postcode3

Three-digit postcode regions in the Netherlands
nl_postcode4

Four-digit postcode regions in the Netherlands
plot.conc

Automatically create a plot for objects obtained from highest_concentration()
concentration

Sum values within a radius around target coordinates
plot.hotspot

Plot concentration hotspot results
plot.neighborhood

Automatically create a plot for objects obtained from neighborhood_gh_search()
nl_gemeente

Municipalities in the Netherlands
nl_postcode2

Two-digit postcode regions in the Netherlands
points_in_circle

Find points within radius around one or more center coordinates
points_to_polygon

Summarise point values by polygon
spatialrisk-deprecated

Deprecated aliases
nl_provincie

Provinces in the Netherlands
update_rasterize

Update current rasterize for the next iteration
top_n_focals

Identify the focal indices with the highest values
update_focal

Update current focal for the next iteration
update_hotspot_cache

Save highest concentrations per cell for subsequent iterations
Groningen

Example addresses in Groningen
concentration_hotspot

Identify fixed-radius concentration hotspots
choropleth

Create choropleth map
highest_concentration

Highest concentration risk
haversine

Haversine great-circle distance
convert_crs_df

Convert Coordinate Reference System (CRS)
choropleth_ggplot2

Choropleth map of an sf object with ggplot2
plot_points

Create interactive point map
neighborhood_gh_search

Search for coordinates with higher concentrations within geohash
interpolate_spline

Interpolate values using spherical splines
knmi_historic_data

Retrieve historic weather data for the Netherlands
map_points_to_cells

Map point coordinates to cell indices
concentration_per_candidate_cell

Determine the concentrations within the highest focal cells for the current iteration
nl_corop

COROP regions in the Netherlands
highest_concentration_candidate

Find the highest concentration for the current iteration
mw_create

Create focal ("moving window") weight matrix
convert_df_to_sf

Convert data.frame to simple features (sf) object
insurance

Example insurance portfolio
knmi_stations

KNMI weather stations
cells_above_threshold

Identify the focal cells exceeding the threshold