-
Notifications
You must be signed in to change notification settings - Fork 581
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ccc08d
commit a7e4203
Showing
4 changed files
with
63 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,72 @@ | ||
--- | ||
output: | ||
md_document: | ||
variant: markdown_github | ||
--- | ||
|
||
<!-- README.md is generated from README.Rmd. Please edit that file - rmarkdown::render('README.Rmd', output_format = 'md_document', output_file = 'README.md') --> | ||
Geocomputation with R | ||
===================== | ||
|
||
Introduction | ||
============ | ||
|
||
|
||
# Geocomputation with R | ||
|
||
# Introduction | ||
|
||
This repository hosts the code underlying Geocomputation with R, a book by [Robin Lovelace](http://robinlovelace.net/) and [Jakub Nowosad](https://nowosad.github.io/). | ||
|
||
This book will be developed in the open and published by CRC Press in late 2018. | ||
|
||
Contributing | ||
------------ | ||
## Contributing | ||
|
||
We encourage contributions on any part of the book, including: | ||
|
||
- Improvements to the text, e.g. clarifying unclear sentences, fixing typos. | ||
- Changes to the code, e.g. to do things in a more efficient way. | ||
- Suggestions on content (see the project's [issue tracker](https://github.com/Robinlovelace/geocompr/issues)). | ||
- Improvements to the text, e.g. clarifying unclear sentences, fixing typos (see guidance from [Yihui Xie](https://yihui.name/en/2013/06/fix-typo-in-documentation/) for help on that. | ||
- Changes to the code, e.g. to do things in a more efficient way. | ||
- Suggestions on content (see the project's [issue tracker](https://github.com/Robinlovelace/geocompr/issues)). | ||
|
||
Please see [style.md](https://github.com/Robinlovelace/geocompr/blob/master/style.md) for the book's style. | ||
|
||
Note: the `.Rproj` file is configured to build a website not a single page. | ||
To reproduce this [README](https://github.com/Robinlovelace/geocompr/blob/master/README.Rmd) use the following command: | ||
|
||
|
||
```r | ||
knitr::knit("README.Rmd") | ||
``` | ||
|
||
Please see [style.md](https://github.com/Robinlovelace/geocompr/blob/master/style.md). | ||
## Reproducing the book | ||
|
||
Reproducing the book | ||
-------------------- | ||
To ease reproducibility, this book is also a package. Installing it from GitHub will ensure all dependencies are available on your computer (you need [**devtools**](https://github.com/hadley/devtools)): | ||
|
||
To ease reproducibility, this book is also a package. Installing it from GitHub, will ensure all dependencies are available on your computer: | ||
|
||
``` r | ||
if(!require(devtools)) { | ||
install.packages("devtools") | ||
} | ||
```r | ||
devtools::install_github("robinlovelace/geocompr") | ||
``` | ||
|
||
You need a recent version of the GDAL, GEOS, Proj.4 and UDUNITS libraries installed for this to work on Mac and Linux. See the **sfr** package's [README](https://github.com/edzer/sfr) for information on that. | ||
You need a recent version of the GDAL, GEOS, Proj.4 and UDUNITS libraries installed for this to work on Mac and Linux. See the **sf** package's [README](https://github.com/edzer/sfr) for information on that. | ||
|
||
Book statistics | ||
--------------- | ||
Once the dependencies have been installed you should be able to build and view a local version the book with: | ||
|
||
|
||
```r | ||
bookdown::render_book("index.Rmd") # to build the book | ||
browseURL("_book/index.html") # to view it | ||
``` | ||
|
||
|
||
## Book statistics | ||
|
||
An indication of the book's progress over time is illustrated below (to be updated roughly every week as the book progresses). | ||
|
||
``` r | ||
|
||
|
||
|
||
```r | ||
ggplot(book_stats) + | ||
geom_area(aes(date, n_pages, fill = chapter), position = "stack") + | ||
ylab("Estimated number of pages") | ||
``` | ||
|
||
![](README_files/figure-markdown_github/bookstats-1.png) | ||
![plot of chunk bookstats](figure/bookstats-1.png) | ||
|
||
Book statistics: estimated number of pages per chapter over time. |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.