Package: spNetwork 0.4.4.2

Jeremy Gelb

spNetwork: Spatial Analysis on Network

Perform spatial analysis on network. Implement several methods for spatial analysis on network: Network Kernel Density estimation, building of spatial matrices based on network distance ('listw' objects from 'spdep' package), K functions estimation for point pattern analysis on network, k nearest neighbours on network, reachable area calculation, and graph generation References: Okabe et al (2019) <doi:10.1080/13658810802475491>; Okabe et al (2012, ISBN:978-0470770818);Baddeley et al (2015, ISBN:9781482210200).

Authors:Jeremy Gelb [aut, cre], Philippe Apparicio [ctb]

spNetwork_0.4.4.2.tar.gz
spNetwork_0.4.4.2.zip(r-4.5)spNetwork_0.4.4.2.zip(r-4.4)spNetwork_0.4.4.2.zip(r-4.3)
spNetwork_0.4.4.2.tgz(r-4.4-x86_64)spNetwork_0.4.4.2.tgz(r-4.4-arm64)spNetwork_0.4.4.2.tgz(r-4.3-x86_64)spNetwork_0.4.4.2.tgz(r-4.3-arm64)
spNetwork_0.4.4.2.tar.gz(r-4.5-noble)spNetwork_0.4.4.2.tar.gz(r-4.4-noble)
spNetwork_0.4.4.2.tgz(r-4.4-emscripten)spNetwork_0.4.4.2.tgz(r-4.3-emscripten)
spNetwork.pdf |spNetwork.html
spNetwork/json (API)
NEWS

# Install 'spNetwork' in R:
install.packages('spNetwork', repos = c('https://jeremygelb.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/jeremygelb/spnetwork/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

kernelkernel-density-estimationnetworknetwork-analysisspatialspatial-analysisspatial-data-analysis

7.38 score 35 stars 46 scripts 228 downloads 74 exports 66 dependencies

Last updated 6 months agofrom:3cf0ad5f79. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 20 2024
R-4.5-win-x86_64OKNov 20 2024
R-4.5-linux-x86_64OKNov 20 2024
R-4.4-win-x86_64OKNov 20 2024
R-4.4-mac-x86_64OKNov 20 2024
R-4.4-mac-aarch64OKNov 20 2024
R-4.3-win-x86_64OKNov 20 2024
R-4.3-mac-x86_64OKNov 20 2024
R-4.3-mac-aarch64OKNov 20 2024

Exports:adaptive_bw_tnkde_cppadaptive_bw_tnkde_cpp2aggregate_pointsbuild_graphbuild_graph_directedbuild_quadtreebw_cv_likelihood_calcbw_cv_likelihood_calc_tkdebw_cv_likelihood_calc.mcbw_cvl_calcbw_cvl_calc.mcbw_tnkde_cv_likelihood_calcbw_tnkde_cv_likelihood_calc.mccalc_isochronescalcEuclideanDistance3closest_pointscontinuous_nkde_cpp_armacontinuous_nkde_cpp_arma_sparsecontinuous_tnkde_cpp_armacontinuous_tnkde_cpp_arma_sparsecorrfactor_continuouscorrfactor_continuous_sparsecorrfactor_discontinuouscorrfactor_discontinuous_sparsecosine_kernelcross_kfunctionscross_kfunctions.mcdiscontinuous_nkde_cpp_armadiscontinuous_nkde_cpp_arma_sparsediscontinuous_tnkde_cpp_armadiscontinuous_tnkde_cpp_arma_sparseepanechnikov_kernelgaussian_kernelgaussian_kernel_scaledgfunc_cppgraph_checkingk_nt_functionsk_nt_functions.mckfunc_cppkfunctionskfunctions.mclines_centerlines_directionlines_extremitieslines_points_alonglixelize_lineslixelize_lines.mcnetwork_knnnetwork_knn.mcnetwork_listwnetwork_listw.mcnkdenkde_get_loo_valuesnkde_workernkde.mcquartic_kernelsimple_linessimplify_networksnapPointsToLines2spatial_indexspatial_requestsplit_graph_componentssplit_lines_at_vertextkdetnkdetnkde_get_loo_valuestnkde_get_loo_values2tnkde_worker_bw_seltnkde.mctriangle_kerneltricube_kerneltriweight_kerneluniform_kernelworker_adaptive_bw_tnkde

Dependencies:abindBHbootclassclassIntclicodetoolscolorspacecpp11cubaturedata.tableDBIdbscandeldirdigeste1071fansifarverfuturefuture.applygenericsgeometriesggplot2globalsgluegtableigraphisobandKernSmoothlabelinglatticelifecyclelistenvmagrittrMASSMatrixmgcvmunsellnlmeparallellypillarpkgconfigprogressrproxyR6rbibutilsRColorBrewerRcppRcppArmadilloRcppProgressRdpackrlangs2scalessfsfheadersspspDataspdeptibbleunitsutf8vctrsviridisLitewithrwk

Building graphs

Rendered fromNetworkBuilding.Rmdusingknitr::rmarkdownon Nov 20 2024.

Last update: 2022-05-14
Started: 2021-08-31

Network k Functions

Rendered fromKNetworkFunctions.Rmdusingknitr::rmarkdownon Nov 20 2024.

Last update: 2022-04-23
Started: 2020-11-13

Network Kernel Density Estimate

Rendered fromNKDE.Rmdusingknitr::rmarkdownon Nov 20 2024.

Last update: 2024-01-02
Started: 2020-06-15

Spatial Weight Matrices

Rendered fromSpatialWeightMatrices.Rmdusingknitr::rmarkdownon Nov 20 2024.

Last update: 2022-04-23
Started: 2020-06-15

Temporal Network Kernel Density Estimate

Rendered fromTNKDE.Rmdusingknitr::rmarkdownon Nov 20 2024.

Last update: 2024-01-02
Started: 2021-11-13

Readme and manuals

Help Manual

Help pageTopics
spNetwork: Spatial Analysis on NetworkspNetwork-package
The exposed function to calculate adaptive bandwidth with space-time interaction for TNKDE (INTERNAL)adaptive_bw_tnkde_cpp
The exposed function to calculate adaptive bandwidth with space-time interaction for TNKDE (INTERNAL)adaptive_bw_tnkde_cpp2
Events aggregationaggregate_points
Road accidents including a bicyle in Montreal in 2016bike_accidents
Network generationbuild_graph
Directed network generationbuild_graph_directed
Build a quadtreebuild_quadtree
Bandwidth selection by likelihood cross validationbw_cv_likelihood_calc
Bandwidth selection for Temporal Kernel density estimate by likelihood cross validationbw_cv_likelihood_calc_tkde
Bandwidth selection by likelihood cross validation (multicore)bw_cv_likelihood_calc.mc
Bandwidth selection by Cronie and Van Lieshout's Criterionbw_cvl_calc
Bandwidth selection by Cronie and Van Lieshout's Criterion (multicore version)bw_cvl_calc.mc
Bandwidth selection by likelihood cross validation for temporal NKDEbw_tnkde_cv_likelihood_calc
Bandwidth selection by likelihood cross validation for temporal NKDE (multicore)bw_tnkde_cv_likelihood_calc.mc
Isochrones calculationcalc_isochrones
Find closest pointsclosest_points
Cosine kernelcosine_kernel
c++ cross g functioncross_gfunc_cpp
c++ cross k functioncross_kfunc_cpp
Network cross k and g functions (maturing)cross_kfunctions
Network cross k and g functions (multicore, maturing)cross_kfunctions.mc
Epanechnikov kernelepanechnikov_kernel
The worker function to calculate continuous TNKDE likelihood cvesc_kernel_loo_nkde
The worker function to calculate continuous TNKDE likelihood cvesc_kernel_loo_tnkde
The worker function to calculate discontinuous TNKDE likelihood cvesd_kernel_loo_nkde
The worker function to calculate discontinuous TNKDE likelihood cvesd_kernel_loo_tnkde
Gaussian kernelgaussian_kernel
Scaled gaussian kernelgaussian_kernel_scaled
c++ g functiongfunc_cpp
Topological errorgraph_checking
Network k and g functions for spatio-temporal data (experimental, NOT READY FOR USE)k_nt_functions
Network k and g functions for spatio-temporal data (multicore, experimental, NOT READY FOR USE)k_nt_functions.mc
c++ k functionkfunc_cpp
Network k and g functions (maturing)kfunctions
Network k and g functions (multicore, maturing)kfunctions.mc
Centre points of lineslines_center
Unify lines directionlines_direction
Get lines extremitieslines_extremities
Points along lineslines_points_along
Cut lines into lixelslixelize_lines
Cut lines into lixels (multicore)lixelize_lines.mc
Primary road network of Montrealmain_network_mtl
Libraries of Montrealmtl_libraries
Road network of Montrealmtl_network
Theatres of Montrealmtl_theatres
K-nearest points on networknetwork_knn
K-nearest points on network (multicore version)network_knn.mc
Network distance listwnetwork_listw
Network distance listw (multicore)network_listw.mc
Network Kernel density estimatenkde
The exposed function to calculate NKDE likelihood cvnkde_get_loo_values
Network Kernel density estimate (multicore)nkde.mc
Quartic kernelquartic_kernel
LineString to simple Linesimple_lines
Simplify a networksimplify_network
Smaller subset road network of Montrealsmall_mtl_network
An object (c++ pointer) to do some spatial query of rectanlges (internal)spatial_index
Spatial requestspatial_request
Split graph componentssplit_graph_components
Split lines at vertices in a feature collection of linestringssplit_lines_at_vertex
Obtain all the bounding boxes of a feature collectionst_bbox_by_feature
Temporal Kernel density estimatetkde
Temporal Network Kernel density estimatetnkde
The exposed function to calculate TNKDE likelihood cvtnkde_get_loo_values
The exposed function to calculate TNKDE likelihood cvtnkde_get_loo_values2
Worker function fo Bandwidth selection by likelihood cross validation for temporal NKDEtnkde_worker_bw_sel
Temporal Network Kernel density estimate (multicore)tnkde.mc
triangle kerneltriangle_kernel
Tricube kerneltricube_kernel
Triweight kerneltriweight_kernel
Uniform kerneluniform_kernel
Worker function for adaptive bandwidth for TNDEworker_adaptive_bw_tnkde