Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luukvdmeer/sfnetworks
Tidy Geospatial Networks in R
https://github.com/luukvdmeer/sfnetworks
geospatial-networks network-analysis rspatial simple-features spatial-analysis spatial-data-science spatial-networks tidygraph tidyverse
Last synced: 7 days ago
JSON representation
Tidy Geospatial Networks in R
- Host: GitHub
- URL: https://github.com/luukvdmeer/sfnetworks
- Owner: luukvdmeer
- License: other
- Created: 2019-01-07T13:52:56.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-11-17T20:51:36.000Z (25 days ago)
- Last Synced: 2024-11-28T22:40:05.805Z (14 days ago)
- Topics: geospatial-networks, network-analysis, rspatial, simple-features, spatial-analysis, spatial-data-science, spatial-networks, tidygraph, tidyverse
- Language: R
- Homepage: https://luukvdmeer.github.io/sfnetworks/
- Size: 80 MB
- Stars: 352
- Watchers: 15
- Forks: 20
- Open Issues: 48
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-starred - luukvdmeer/sfnetworks - Tidy Geospatial Networks in R (others)
- jimsghstars - luukvdmeer/sfnetworks - Tidy Geospatial Networks in R (R)
README
# Tidy Geospatial Networks in R
[![R build status](https://github.com/luukvdmeer/sfnetworks/workflows/R-CMD-check/badge.svg)](https://github.com/luukvdmeer/sfnetworks/actions)
[![Codecov test coverage](https://codecov.io/gh/luukvdmeer/sfnetworks/branch/master/graph/badge.svg)](https://app.codecov.io/gh/luukvdmeer/sfnetworks)
[![CRAN](https://www.r-pkg.org/badges/version/sfnetworks)](https://cran.r-project.org/package=sfnetworks)
[![Downloads](https://cranlogs.r-pkg.org/badges/sfnetworks)](https://cran.r-project.org/package=sfnetworks){sfnetworks} is an R package for analysis of geospatial networks. It connects and extends the functionalities of the {tidygraph} package for network analysis and the {sf} package for spatial data science.
## Background
Geospatial networks are graphs embedded in geographical space. That means that both the nodes and edges in the graph can be represented as geographic features: the nodes most commonly as points, and the edges as linestrings. They play an important role in many different domains, ranging from transportation planning and logistics to ecology and epidemiology. The structure and characteristics of geospatial networks go beyond standard graph topology, and therefore it is crucial to explicitly take space into account when analyzing them.
We created {sfnetworks} to facilitate such an integrated workflow. It combines the forces of two popular R packages: {[sf](https://r-spatial.github.io/sf/)} for spatial data science and {[tidygraph](https://tidygraph.data-imaginist.com/index.html)} for standard graph analysis. The core of the package is a dedicated data structure for geospatial networks, that can be provided as input to both the graph analytical functions of {tidygraph} as well as the spatial analytical functions of {sf}, without the need for conversion. Additionally, we implemented a set of geospatial network specific functions, such as routines for shortest path calculation, network cleaning and topology modification. {sfnetworks} is designed as a general-purpose package suitable for usage across different application domains, and can be seamlessly integrated in [tidyverse](https://www.tidyverse.org/) workflows.
## Installation
You can install the latest stable version of {sfnetworks} from [CRAN](https://cran.r-project.org/package=sfnetworks) with:
```r
install.packages("sfnetworks")
```You can install the development version from [GitHub](https://github.com/luukvdmeer/sfnetworks) with:
```r
remotes::install_github("luukvdmeer/sfnetworks")
```**Note:** Two important dependencies of {sfnetworks}, the {sf} package for spatial data science and the {igraph} package for network analysis (which is the main "analysis backend" of {tidygraph}), require some low-level software libraries to be installed on your system. Depending on which operating system you use, this can mean that you have to install these system requirements first, before you can install {sfnetworks}. See the installation guides of [sf](https://github.com/r-spatial/sf#installing) and [igraph](https://github.com/igraph/rigraph#installation) for details.
## Usage
To get started with {sfnetworks}, read the [Introduction to sfnetworks](https://luukvdmeer.github.io/sfnetworks/articles/sfn01_intro.html). Four additional package vignettes guide you in more detail through the functionalities of the package:
- [Creating and representing spatial networks](https://luukvdmeer.github.io/sfnetworks/articles/sfn02_create_represent.html)
- [Cleaning spatial networks](https://luukvdmeer.github.io/sfnetworks/articles/sfn03_cleaning.html)
- [Spatial joins and filters](https://luukvdmeer.github.io/sfnetworks/articles/sfn04_join_filter.html)
- [Routing on spatial networks](https://luukvdmeer.github.io/sfnetworks/articles/sfn05_routing.html)## Contribution
We look very much forward to contributions to the package. See the [contributing guide](https://github.com/luukvdmeer/sfnetworks/blob/master/CONTRIBUTING.md) for further details.
This project is released with a [Contributor Code of Conduct](https://github.com/luukvdmeer/sfnetworks/blob/master/CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
## Acknowledgment
This project gratefully acknowledges financial [support](https://www.r-consortium.org/projects) from the