Skip to content

Commit

Permalink
Merge pull request #19 from spatialanalysis/xli-update-scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
lixun910 authored Oct 25, 2023
2 parents 95a5b36 + 4d1ae6d commit d87a386
Show file tree
Hide file tree
Showing 421 changed files with 19,364 additions and 5,847 deletions.
Binary file added .DS_Store
Binary file not shown.
8 changes: 7 additions & 1 deletion .github/workflows/build_bookdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ name: bookdown

jobs:
bookdown:
runs-on: ubuntu-latest
runs-on: macOS-latest
# Only restrict concurrency for non-PR jobs
concurrency:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
Expand All @@ -32,3 +32,9 @@ jobs:
run: bookdown::render_book("index.Rmd", quiet = TRUE)
shell: Rscript {0}

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: _book
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
.Rhistory
.RData
.Ruserdata
.vscode/settings.json
_bookdown_files/

5 changes: 3 additions & 2 deletions 08-spatial-weights-as-distance-functions.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ their dependencies.^[Use
library(sf)
library(spdep)
library(geodaData)
library(spatialreg)
```


Expand Down Expand Up @@ -571,10 +572,10 @@ diag(B) <- 1
With this, we can now convert back to class **listw** with the **spdep** function `mat2listw`.
The function is pretty self explanatory, as it converts from a matrix the **listw**. We
need one extra step to accomplish the conversion. We first need to convert **B** to class
**dgTMatrix** before we can use the `mat2listw` function.
**dgRMatrix** before we can use the `mat2listw` function.

```{r quiet = TRUE}
var.band.w2 <- mat2listw(as(B, "dgTMatrix"))
var.band.w2 <- mat2listw(as(B, "dgRMatrix"))
```

#### Properties of kernal weights {-}
Expand Down
2 changes: 1 addition & 1 deletion 11-global-spatial-autocorrelation2.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ out the Spatial Data Handling notebook.

```{r}
st_crs(counties)
counties <- st_transform(counties, 102003)
counties <- st_transform(counties, crs = "ESRI:102003")
```


Expand Down
178 changes: 104 additions & 74 deletions 12-local-spatial-autocorrelation1.Rmd

Large diffs are not rendered by default.

15 changes: 0 additions & 15 deletions _bookdown_files/handsonspatialdata_cache/html/__packages

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
670 changes: 670 additions & 0 deletions docs/404.html

Large diffs are not rendered by default.

1,321 changes: 845 additions & 476 deletions docs/applications-of-spatial-weights.html

Large diffs are not rendered by default.

1,785 changes: 1,106 additions & 679 deletions docs/basic-mapping.html

Large diffs are not rendered by default.

841 changes: 560 additions & 281 deletions docs/contiguity-based-spatial-weights.html

Large diffs are not rendered by default.

1,140 changes: 739 additions & 401 deletions docs/distance-based-spatial-weights.html

Large diffs are not rendered by default.

1,374 changes: 836 additions & 538 deletions docs/exploratory-data-analysis-1.html

Large diffs are not rendered by default.

1,028 changes: 643 additions & 385 deletions docs/exploratory-data-analysis-2.html

Large diffs are not rendered by default.

1,290 changes: 818 additions & 472 deletions docs/global-spatial-autocorrelation-1.html

Large diffs are not rendered by default.

1,019 changes: 650 additions & 369 deletions docs/global-spatial-autocorrelation-2.html

Large diffs are not rendered by default.

Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-102-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-103-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-104-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-105-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-107-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-108-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-112-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-116-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-117-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-118-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-119-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-124-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-125-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-126-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-127-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-128-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-129-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-13-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-130-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-131-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-133-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-134-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-135-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-136-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-137-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-138-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-139-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-140-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-141-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-149-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-150-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-151-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-152-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-154-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-155-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-160-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-162-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-166-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-167-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-17-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-173-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-175-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-179-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-181-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-184-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-186-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-188-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-196-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-197-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-201-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-202-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-203-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-208-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-232-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-233-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-234-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-235-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-239-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-240-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-246-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-257-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-258-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-261-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-262-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-264-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-265-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-268-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-269-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-274-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-276-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-284-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-30-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-300-1.png
Binary file modified docs/handsonspatialdata_files/figure-html/unnamed-chunk-328-1.png
Loading

0 comments on commit d87a386

Please sign in to comment.