• Stars
    star
    229
  • Rank 174,666 (Top 4 %)
  • Language
    HTML
  • License
    Other
  • Created over 6 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Spatial Data Science: With Applications in R (source files)

quarto sources for "Spatial Data Science: with applications in R"

The print version of this book is available from CRC/Chapman and Hall. A rendered (html) version of this book is available online.

To recreate/reproduce this book:

  • git clone this repository
  • download the data used in Ch 13, and extract the contents of the aq subdirectory into sdsr/aq
  • install R package dependencies listed below
  • install quarto
  • run quarto render --to html

See also the Dockerfile; building the (18 Gb) image with

docker build . -t sdsr

and running it with

docker run -p 8787:8787 -e DISABLE_AUTH=true -ti --rm sdsr

will serve an Rstudio server instance on http://localhost:8787/, without authentication.

Compiling the whole book

After running the docker image and opening rstudio in the browser:

  • click on 01-hello.qmd in the bottom-right pane
  • click on the Render button of the top-left pane to compile the whole book

this should open a new browser window with the full book rendered (you may need to switch off popup blockers for localhost)

Running selected chunks

To run a selected code section, possibly after modification, find the selected code section in the corresponding .qmd file, and click the small green arrow symbols on the top-right corner of the code blocks:

  • to prepare, first click Run All Chunks Above,
  • to run a selected code chunk: click Run Current Chunk

Dependencies

To locally process the book, download (clone) this repository and install the following R packages from CRAN:

install.packages(c(
  "dbscan",
  "gstat",
  "hglm",
  "igraph",
  "lme4",
  "lmtest",
  "maps",
  "mapview",
  "matrixStats",
  "mgcv",
  "R2BayesX",
  "rgeoda",
  "rnaturalearth",
  "rnaturalearthdata",
  "sf",
  "spatialreg",
  "spdep",
  "spData",
  "stars",
  "tidyverse",
  "tmap"))

Install INLA:

install.packages("INLA", repos = c(getOption("repos"), INLA="https://inla.r-inla-download.org/R/stable"))

Install spDataLarge:

options(timeout = 600); install.packages("spDataLarge", repos = "https://nowosad.github.io/drat/",type = "source")

Install starsdata:

options(timeout = 1200); install.packages("starsdata", repos = "http://cran.uni-muenster.de/pebesma", type = "source")

Install spatialreg from source from github, either from source:

install.packages("remotes")
remotes::install_github("r-spatial/spatialreg")

or as binary from r-universe:

options(repos = c(
  rspatial = "https://r-spatial.r-universe.dev",
  CRAN = "https://cloud.r-project.org"))
install.packages(c("spatialreg"))

More Repositories

1

sp

Classes and methods for spatial data
R
122
star
2

spacetime

Classes and methods for spatio-temporal data
R
73
star
3

UseR2019

R
36
star
4

hexbin

Hexagonal binning routines and plotting methods
R
33
star
5

trajectories

Handling and analyzing trajectory and movement data
HTML
29
star
6

sdswr

Spatial Data Science with R, MSc course
HTML
21
star
7

UseR2021

slides for UseR2021 presentation
R
20
star
8

sswr

Spatial Statistics with R course materials
17
star
9

rstudio_conf

R
13
star
10

UseR2017

workshop on Spatial data in R: new directions.
13
star
11

UseR2016

UseR! 2016 tutorial on Handling and Analyzing Spatial, Spatiotemporal and Movement Data
HTML
8
star
12

mstp

Course slides: modelling spatio-temporal processes
TeX
8
star
13

sdsc19ws

Spatial Data Science Conference workshop "An Introduction to Spatial Data Science with R"
R
8
star
14

sf_dep

a package depending on sf
R
7
star
15

spnetwork

Spatial networks, using SpatialLines for edges
R
7
star
16

geostat

geostat Bergen slides and material
6
star
17

hertie-school

Summer School teaching materials
5
star
18

astd

Makefile
5
star
19

mss

R package: meaningful spatial statistics
R
5
star
20

sdsr_exercises

answers to exercises of "Spatial Data Science"
HTML
5
star
21

UseR2020

TeX
5
star
22

OGH23

Python
4
star
23

sdsc19

slides for Spatial Data Science Conference 2019
HTML
4
star
24

OGH20

R
3
star
25

vardiag

An R package for variogram diagnostics
R
3
star
26

geopython2023

talk materials
3
star
27

nyc_course

R
3
star
28

UseR2024

UseR! 2024 slides
3
star
29

reprex.sh

shell script to create an R reproducible example
Shell
3
star
30

OGH22

OpenGeoHub summer school 2022 materials
Makefile
3
star
31

winterschool

Makefile
3
star
32

LPS22

R
3
star
33

berlin

2
star
34

geosphere

FORK of geosphere on r-forge:
C
2
star
35

qrng

R interface to a quantum random number generator
C
2
star
36

raster_data_benchmark

2
star
37

MunichRe

On-line material found at https://edzer.github.io/MunichRe/
R
2
star
38

OGH19

stuff for the OpenGeoHub summer school, 2019
TeX
2
star
39

sfx

2
star
40

OGH21

2
star
41

GEO

2
star
42

spherical_geometry

R
1
star
43

foss4gnl

foss4gnl keynote slides
1
star
44

creaf

https://edzer.github.com/creaf/
R
1
star
45

SpatioTemporal

R
1
star
46

openeo_hackaton

openeo hackaton team 3
R
1
star
47

softwarepaper

paper describing requirements for scientific papers describing software
TeX
1
star
48

FOSS4G

1
star
49

prague

1
star
50

jena

1
star