Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/GeoDaCenter/rgeoda
R library for spatial data analysis based on libgeoda and GeoDa
https://github.com/GeoDaCenter/rgeoda
dataanalysis geoda geospatial r
Last synced: 3 months ago
JSON representation
R library for spatial data analysis based on libgeoda and GeoDa
- Host: GitHub
- URL: https://github.com/GeoDaCenter/rgeoda
- Owner: GeoDaCenter
- Created: 2019-07-02T02:20:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-22T23:14:37.000Z (4 months ago)
- Last Synced: 2024-07-23T02:41:28.550Z (4 months ago)
- Topics: dataanalysis, geoda, geospatial, r
- Language: R
- Homepage:
- Size: 96 MB
- Stars: 69
- Watchers: 11
- Forks: 13
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rgeoda
[![R-CMD-check](https://github.com/lixun910/rgeoda-1/actions/workflows/build-check.yml/badge.svg)](https://github.com/lixun910/rgeoda-1/actions/workflows/build-check.yml)
[![lint-project](https://github.com/lixun910/rgeoda-1/actions/workflows/lint-project.yaml/badge.svg)](https://github.com/lixun910/rgeoda-1/actions/workflows/lint-project.yaml)
[![pkgdown](https://github.com/lixun910/rgeoda-1/actions/workflows/pkgdown.yaml/badge.svg)](https://github.com/lixun910/rgeoda-1/actions/workflows/pkgdown.yaml)rgeoda is a R package for spatial data analysis based on libgeoda and GeoDa. It provides spatial data analysis functionalities including Exploratory Spatial Data Analysis, Spatial Cluster Detection and Clustering Analysis, Regionalization, etc. based on the C++ source code of GeoDa, which is an open-source software tool that serves as an introduction to spatial data analysis. The GeoDa software and its documentation are available at https://geodacenter.github.io.
The rgeoda site is built using pkgdown: https://geodacenter.github.io/rgeoda## Installation
```R
install.packages("rgeoda")
```![cran status](https://www.r-pkg.org/badges/version/rgeoda)
![cran release](https://www.r-pkg.org/badges/last-release/rgeoda)
![cran downloads](https://cranlogs.r-pkg.org/badges/grand-total/rgeoda)## Quick Start
```R
library(sf)
library(rgeoda)guerry_path <- system.file("extdata", "Guerry.shp", package = "rgeoda")
guerry <- st_read(guerry_path)w <- queen_weights(guerry)
lisa <- local_moran(w, guerry['Crm_prs'])
clusters <- skater(4, w, guerry[c('Crm_prs','Crm_prp','Litercy','Donatns','Infants','Suicids')])
```### Citation
Anselin, L., Li, X. and Koschinsky, J. (2022), GeoDa, From the Desktop to an Ecosystem for Exploring Spatial Data. Geogr Anal, 54: 439-466. [Download Citation](https://onlinelibrary.wiley.com/action/showCitFormats?doi=10.1111%2Fgean.12311)
### Tutorials
https://geodacenter.github.io/rgeoda/articles/rgeoda_tutorial.html
### APIs
https://geodacenter.github.io/rgeoda/reference/
## Current version 0.0.9* Map Classification
* NaturalBreaks
* QuantileBreaks
* Hinge15Breaks
* Hinge30Breaks
* PercentileBreaks
* StddevBreaks
* Spatial Weights
* Queen
* Rook
* Distance based
* K-Nearest Neighbor
* Kernel
* Read GAL/GWT/SWM weights
* Spatial Autocorrelation
* Local Moran
* Bivariate Local Moran
* Local Moran EB Rates
* Local Geary
* Local Getis-Ord
* Multivariate Local Geary
* Local Join Count
* Bivariate Local Join Count
* (Multivariate) Colocation Local Join Count
* Quantile LISA
* Multivariate Quantile LISA
* Neighbor Match Test* Spatial Clustering
* SCHC Spatial Constrained Hierarchical Clustering
* Single-linkage
* Complete-linkage
* Average-linkage
* Ward-linkage
* SKATER
* REDCAP
* First-order and Single-linkage
* Full-order and Complete-linkage
* Full-order and Average-linkage
* Full-order and Single-linkage
* Full-order and Ward-linkage
* AZP
* greedy
* Tabu Search
* Simulated Annealing
* Max-p
* greedy
* Tabu Search
* Simulated Annealing
* Join Count Ratio
* Spatial Validation
* Fragmentation
* Join Count Ratio
* Compactness
* Diameter
* Make Spatial## Build and install from source code
In R console, one can use devtools to install rgeoda from its **source package**:
```R
devtools::install_github("geodacenter/rgeoda")
```#### Mac
For Mac users, the “Xcode Command Line Tools” need to be installed for installing rgeoda. It is a free software provided by Apple, which can be installed by using the following command in a terminal:
```
xcode-select --install
```Note that the Xcode tools are not automatically updated when a new version of Xcode is installed. In order to make
sure you have the latest version, use:```
sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install
```In order to make sure to have the correct C++ compiler for R 4.0 and later, follow the instructions
on https://thecoatlessprofessor.com/programming/cpp/r-compiler-tools-for-rcpp-on-macos/.#### Windows
On Windows, the `Rtools` needs to be installed first. https://cran.r-project.org/bin/windows/Rtools/
#### Linux
For Linux users, the “Build Essential Tools” needs to be installed first.
```
sudo apt-get update
sudo apt-get install build-essential
```