This is a resubmission. In this version I have:
- Added
concentration_hotspot()as the main function for fixed-radius concentration hotspot detection. The function returns ahotspotobject withhotspotsandcontributing_pointscomponents. - Added
method = "continuous"as the default method forconcentration_hotspot(). It searches for hotspot centres that may lie between observed points, using spatial screening followed by Rcpp pair-intersection refinement. If the local subset exceedsmax_refinement_points, it falls back tomethod = "grid". - Added
method = "observed"toconcentration_hotspot(), an experimental Rcpp spatial-indexing alternative that searches observed point locations only. - Deprecated
find_highest_concentration()in favour ofconcentration_hotspot(). The deprecated function remains available for existing code. - Renamed the
concentration()workflow toradius_sum(), with clearertargetsandreferencearguments. The oldconcentration()function remains available as a deprecated compatibility wrapper. - Renamed
radius_sum(display_progress = )toradius_sum(progress = )for consistency withconcentration_hotspot(). - Renamed
points_in_circle()topoints_within_radius(). The old function remains available as a deprecated compatibility wrapper. - Replaced
points_to_polygon()withsummarise_points_by_polygon(), which more clearly describes joining point data to polygons and summarising a numeric point attribute. The old function remains available as a deprecated compatibility wrapper. - Renamed
plot_points()tomap_points(). The old function remains available as a deprecated compatibility wrapper.
- Improved
haversine()and the underlying C++ distance calculation by reducing unnecessary operations and adding stricter input checks. - Improved
points_within_radius()validation and handling of multiple centre coordinates. - Improved
radius_sum()validation, output column handling, and C++ prefiltering of incomplete reference rows. - Updated
concentration_hotspot()documentation to clarify that the function uses a grid-based search with local refinement. The search precision is controlled bycell_sizeandgrid_precision. concentration_hotspot()now usesprogressinstead ofprint_progress. Since this is a new public API, the old argument is not retained there; older deprecated functions still translate their legacy progress arguments.- Deprecated
interpolate_spline()because spline interpolation is outside the main scope of the package. The function remains available for compatibility.
- Consolidated choropleth mapping around
choropleth(), usingtmapfor both static and interactive output. - Deprecated
choropleth_ggplot2()in favour ofchoropleth(). - Moved optional visualisation packages such as
mapview,tmap,ggplot2, andclassInttoSuggests.
- Reorganised dataset documentation by topic: Dutch spatial boundary data, KNMI stations, insurance example data, and Groningen example addresses.
- Moved
knmi_historic_data()to its own function documentation file and improved validation for years, station IDs, progress handling, failed downloads, and temporary-file cleanup. - Added tests for package dataset schemas and
knmi_historic_data()input validation. - Added a main vignette on fixed-radius concentration analysis in an applied insurance setting.
- Updated the visualisation vignette to use the current
choropleth()API. - Rewrote the README in a more applied, method-oriented style suitable for use alongside an actuarial paper.
- Updated
DESCRIPTIONwith a more specific title and broader package description. - Centralised small deprecated compatibility wrappers in one file.
- local OS X install, R 4.5.3
- win-builder (devel and release)
There were no ERRORs, WARNINGs or NOTEs.
I have also run R CMD check on downstream dependencies of spatialrisk. All packages that I could install passed.