GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - a-lambda/sdsr: Spatial Data Science: With Applications in R

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

761 Commits
761 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
data
data
 
 
docker
docker
 
 
docs
docs
 
 
images
images
 
 
redir
redir
 
 
scripts
scripts
 
 
.gitignore
.gitignore
 
 
01-hello.qmd
01-hello.qmd
 
 
02-Spaces.qmd
02-Spaces.qmd
 
 
03-Geometries.qmd
03-Geometries.qmd
 
 
04-Spherical.qmd
04-Spherical.qmd
 
 
05-Attributes.qmd
05-Attributes.qmd
 
 
06-Cubes.qmd
06-Cubes.qmd
 
 
07-Introsf.qmd
07-Introsf.qmd
 
 
08-Plotting.qmd
08-Plotting.qmd
 
 
09-Large.qmd
09-Large.qmd
 
 
10-Models.qmd
10-Models.qmd
 
 
11-PointPattern.qmd
11-PointPattern.qmd
 
 
12-Interpolation.qmd
12-Interpolation.qmd
 
 
13-Geostatistics.qmd
13-Geostatistics.qmd
 
 
14-Areal.qmd
14-Areal.qmd
 
 
15-Measures.qmd
15-Measures.qmd
 
 
16-SpatialRegression.qmd
16-SpatialRegression.qmd
 
 
17-Econometrics.qmd
17-Econometrics.qmd
 
 
97-allcode.qmd
97-allcode.qmd
 
 
99-references.qmd
99-references.qmd
 
 
DESCRIPTION
DESCRIPTION
 
 
ERRATA.qmd
ERRATA.qmd
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
_quarto.yml
_quarto.yml
 
 
book.bib
book.bib
 
 
index.qmd
index.qmd
 
 
krantz.cls
krantz.cls
 
 
makefile
makefile
 
 
packages.bib
packages.bib
 
 
part-1.qmd
part-1.qmd
 
 
part-2.qmd
part-2.qmd
 
 
part-3.qmd
part-3.qmd
 
 
rbasics.qmd
rbasics.qmd
 
 
references.qmd
references.qmd
 
 
repl.awk
repl.awk
 
 
repl.sed
repl.sed
 
 
sdsr.Rproj
sdsr.Rproj
 
 
sp-raster.qmd
sp-raster.qmd
 
 

Repository files navigation

quarto sources for "Spatial Data Science: With Applications in R"

The print version of this book is available from CRC/Chapman and Hall. A complete online version of this book is available.

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",
  "viridis",
  "tmap",
  "arrow"))

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")

Daily rendered version on GA

The entire book is recreated from source nightly with the latest released R and all updated CRAN packages by a Github Action using this script. The online version thus rendered is found here. As this output is not checked daily it is not automatically copied to the "official" online version, at https://r-spatial.org/book/ .

Python version

A version "With Applications in R and Python" is under construction; the sources are in the python branch of this repository, a rendered online version is found at https://r-spatial.org/python/ .

About

Spatial Data Science: With Applications in R

r-spatial.org/book

Resources

Readme
License
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.