This package also can create a proximity score for each spatial unit like a Census block group, to quantify the distance-weighted count of nearby points. This proximity score can be used in environmental justice (EJ) analysis, for example. This package uses the sp package for the basic distance calculation.
Key functions include get.nearest() to find the one topoint nearest each frompoint, get.distances() to find distances quickly within an optional search radius, and get.distances.all() to find distances from all frompoints to alltopoints. The function proxistat() creates a proximity score that quantifies, for each spatial unit like a Census block group, how many topoints are nearby and how close they are.
This package is not on CRAN yet, but you can install it from Github:
if (!require('devtools')) install.packages('devtools')
devtools::install_github('ejanalysis/proxistat')
In addition to documentation in the package, the help in pdf format is here: http://ejanalysis.github.io/proxistat/proxistat.pdf
This package is one of a series of R packages related to environmental justice (EJ) analysis, as part of ejanalysis.com.
This and related packages, once each is made available as a public repository on GitHub, until available on cran, can be installed using the devtools package:
if (!require('devtools')) install.packages('devtools')
devtools::install_github("ejanalysis/analyze.stuff")
devtools::install_github("ejanalysis/countyhealthrankings")
devtools::install_github("ejanalysis/UScensus2010blocks")
devtools::install_github("ejanalysis/ACSdownload")
devtools::install_github(c("ejanalysis/proxistat", "ejanalysis/ejanalysis"))
devtools::install_github("ejanalysis/ejscreen")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.