Learn R Programming

spatialrisk (version 0.8.1)

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 areas of high local concentration, 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

798

Version

0.8.1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Martin Haringa

Last Published

June 16th, 2026

Functions in spatialrisk (0.8.1)

nl_gemeente

Municipalities in the Netherlands
nl_postcode2

Two-digit postcode regions in the Netherlands
highest_concentration

Highest concentration risk
points_in_circle

Deprecated alias for points_within_radius()
plot_points

Deprecated alias for map_points()
nl_postcode4

Four-digit postcode regions in the Netherlands
nl_postcode3

Three-digit postcode regions in the Netherlands
knmi_historic_data

Retrieve historic weather data for the Netherlands
nl_corop

COROP regions in the Netherlands
plot.neighborhood

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

Update current focal for the next iteration
neighborhood_gh_search

Search for coordinates with higher concentrations within geohash
points_within_radius

Find points within radius around one or more center coordinates
nl_provincie

Provinces in the Netherlands
mw_create

Create focal ("moving window") weight matrix
points_to_polygon

Deprecated alias for summarise_points_by_polygon()
radius_sum

Sum values within a radius around target coordinates
prepare_spatialrisk

Prepare fixed-radius concentration hotspot analysis
update_hotspot_cache

Save highest concentrations per cell for subsequent iterations
update_rasterize

Update current rasterize for the next iteration
summarise_points_by_polygon

Summarise point values by polygon
top_n_focals

Identify the focal indices with the highest values
concentration

Deprecated alias for radius_sum()
convert_crs_df

Convert Coordinate Reference System (CRS)
concentration_per_candidate_cell

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

Create choropleth map
concentration_hotspot

Identify fixed-radius concentration hotspots
find_highest_concentration

Deprecated alias for concentration_hotspot()
choropleth_ggplot2

Choropleth map of an sf object with ggplot2
Groningen

Example addresses in Groningen
convert_df_to_sf

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

Identify the focal cells exceeding the threshold
haversine

Haversine great-circle distance
highest_concentration_candidate

Find the highest concentration for the current iteration
knmi_stations

KNMI weather stations
insurance

Example insurance portfolio
interpolate_spline

Interpolate values using spherical splines
map_points_to_cells

Map point coordinates to cell indices
plot.hotspot

Plot concentration hotspot results
plot.conc

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

Create interactive point map