Learn R Programming

spatialrisk (version 0.8.2)

Spatial Concentration and Radius-Based Risk Calculations

Description

Provides computational building blocks for fixed-radius spatial aggregation, weighted circle-placement problems, hotspot detection, and polygon-based spatial summaries. 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 fixed-radius circle placement problem is discussed by Chazelle and Lee (1986) , and related maximum covering problems are described by Church (1974) .

Copy Link

Version

Install

install.packages('spatialrisk')

Monthly Downloads

471

Version

0.8.2

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Martin Haringa

Last Published

September 1st, 2026

Functions in spatialrisk (0.8.2)

map_points

Create interactive point map
map_points_to_cells

Map point coordinates to cell indices
knmi_historic_data

Retrieve historic weather data for the Netherlands
haversine

Haversine great-circle distance
knmi_stations

KNMI weather stations
insurance

Example insurance portfolio
interpolate_spline

Interpolate values using spherical splines
highest_concentration

Deprecated geohash hotspot search
mw_create

Create focal ("moving window") weight matrix
highest_concentration_candidate

Find the highest concentration for the current iteration
plot.hotspot

Plot concentration hotspot results
plot.neighborhood

Plot deprecated geohash neighbourhood results
nl_postcode3

Three-digit postcode regions in the Netherlands
nl_gemeente

Municipalities in the Netherlands
nl_postcode2

Two-digit postcode regions in the Netherlands
nl_provincie

Provinces in the Netherlands
plot.conc

Plot deprecated geohash hotspot results
neighborhood_gh_search

Deprecated geohash neighbourhood refinement
nl_postcode4

Four-digit postcode regions in the Netherlands
nl_corop

COROP regions in the Netherlands
summarise_points_by_polygon

Summarise point exposures by reporting polygon
top_n_focals

Identify the focal indices with the highest values
prepare_spatialrisk

Prepare fixed-radius concentration hotspot analysis
points_within_radius

Find points within radius around one or more centre coordinates
radius_sum

Sum values within a radius around target coordinates
update_focal

Update current focal for the next iteration
update_rasterize

Update current rasterize for the next iteration
points_to_polygon

Deprecated alias for summarise_points_by_polygon()
plot_points

Deprecated alias for map_points()
update_hotspot_cache

Save highest concentrations per cell for subsequent iterations
points_in_circle

Deprecated alias for points_within_radius()
choropleth_ggplot2

Choropleth map of an sf object with ggplot2
convert_crs_df

Convert Coordinate Reference System (CRS)
choropleth

Create a choropleth map of polygon-level values
concentration_hotspot

Find fixed-radius concentration hotspots
convert_df_to_sf

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

Deprecated alias for concentration_hotspot()
Groningen

Example addresses in Groningen
concentration_per_candidate_cell

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

Deprecated alias for radius_sum()
cells_above_threshold

Identify the focal cells exceeding the threshold