The goal of spacejamr is to enable social network analysis where conventional collection of social network data would be impossible. It does this by providing tools to prepare shapefiles, simulate spatial point processes, generate networks from those point processes using a spatial interaction function. It also contains plot methods that return ‘ggplot2’ objects that can be further refined.

You can install the released version of spacejamr from CRAN with:

`install.packages("spacejamr")`

```
library(spacejamr)
# Load Rhode Island dataset
data(RI)
# Spatial Poisson point process
<- PointProcess(points = 5000, window = RI, seed = 88)
ri_points
# Halton sequence
<- haltonSeq(points = 5000, window = RI, seed = 9) ri_seq
```

```
# Standard power law SIF
<- NetSim(point_process = ri_points, base_prob = 0.95,
rinet_standard scale = 100, threshold = 0.5, power = -2.3)
# Attenuated power law SIF
<- NetSim(point_process = ri_points, type = attenuated,
rinet_apl base_prob = 0.93, scale = 100, threshold = 0.5,
power = -1.9)
# Arctangent probability law SIF
<- NetSim(point_process = ri_points, type = arctan,
rinet_arctan base_prob = 0.93, scale = 100, threshold = 0.5,
power = -1.9)
# Exponential decay law SIF
<- NetSim(point_process = ri_points, type = decay,
rinet_arctan base_prob = 0.93, scale = 100, threshold = 0.5,
power = -1.9)
# Logistic probability law SIF
<- NetSim(point_process = ri_points, type = logistic,
rinet_arctan base_prob = 0.93, scale = 100, threshold = 0.5,
power = -1.9)
```

```
# Boundaries
plot(RI)
# Point process or sequence realization
plot(ri_points)
plot(ri_seq)
# Network generated from SIF
plot(rinet_standard)
plot(rinet_apl)
```

`compare_networks(rinet_standard, rinet_apl)`

Creator: Darren Colby

Creater ORCID: 0000-0001-8468-2755

Maintainer: Darren Colby

Maintainer email: dscolby17@gmail.com

Current version: 0.2

License: MIT