https://github.com/kevcaz/mapswithr
:book: A document to learn how to make maps with R :world_map:
https://github.com/kevcaz/mapswithr
r spatial spatial-analysis spatial-data
Last synced: 8 months ago
JSON representation
:book: A document to learn how to make maps with R :world_map:
- Host: GitHub
- URL: https://github.com/kevcaz/mapswithr
- Owner: KevCaz
- Created: 2015-08-24T15:18:37.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-11-09T19:16:37.000Z (over 7 years ago)
- Last Synced: 2025-04-10T05:05:25.122Z (10 months ago)
- Topics: r, spatial, spatial-analysis, spatial-data
- Language: HTML
- Homepage: http://kevcaz.github.io/mapsWithR
- Size: 88.6 MB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Edit and create maps with R
Originally, I created this repository to gather material about the creation
and edition of maps with R. Well, things have dramatically changed recently,
for instance [sf](https://github.com/r-spatial/sf) has become the new standard
for vector files and is not included in the document, the current document is
therefore a bit outdated (there is still some relevant
material though).
Now, I use this repository to update a short & sweet tutorial about how
to turn R into a powerful GIS (see `docs/`) and list valuable resources, *e.g.*:
- I contributed to the creation of this online tutorial: https://insileco.github.io/tuto/rinspace/rinspace_homepage/
- https://geocompr.robinlovelace.net/
- http://rspatial.org/intr/index.html
- https://freegisdata.rtwilson.com/
## How to obtain the practical guide from the .rmd file
Use the R code below:
```R
install.packages("rmarkdown")
# pdf
rmarkdown::render("pathto/MapswithR/mapsR.Rmd", "pdf_document")
# html
rmarkdown::render("pathto/MapswithR/mapsR.Rmd", "html_document")
# both
rmarkdown::render("pathto/MapswithR/mapsR.Rmd", "all")
```
or the makefile:
```sh
make
```
Last compilation of the document on November 6th, 2018, `sessionInfo()` is
provided below.
```R
R> sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux buster/sid
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/openblas/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/libopenblasp-r0.3.3.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_CA.UTF-8 LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_CA.UTF-8
[6] LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_CA.UTF-8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] methods datasets stats graphics grDevices utils base
other attached packages:
[1] rgdal_1.3-6 rgeos_0.3-28 raster_2.8-4 sp_1.3-1 magrittr_1.5 graphicsutils_1.2-0
[7] knitr_1.20 rmarkdown_1.10 devtools_1.13.6 inSilecoMisc_0.1.2
loaded via a namespace (and not attached):
[1] Rcpp_0.12.19 codetools_0.2-15 lattice_0.20-38 digest_0.6.18 crayon_1.3.4 withr_2.1.2 rprojroot_1.3-2 grid_3.5.1
[9] backports_1.1.2 evaluate_0.12 tools_3.5.1 compiler_3.5.1 memoise_1.1.0 htmltools_0.3.6
```