GithubHelp home page GithubHelp logo

paezha / spatial-analysis-r Goto Github PK

View Code? Open in Web Editor NEW
58.0 6.0 21.0 128.6 MB

Open Educational Resource for teaching spatial data analysis and statistics with R

Home Page: https://paezha.github.io/spatial-analysis-r/

License: Creative Commons Zero v1.0 Universal

Shell 0.07% TeX 1.22% CSS 0.78% R 7.57% HTML 90.36%
r data-analysis statistics rstats r-package r-spatial open-educational-resource spatial-statistics spatial-data-analysis

spatial-analysis-r's Introduction

An Introduction to Spatial Data Analysis and Statistics: A Course in R

GitHub all contributors [GitHub commit activity Launch Rstudio Binder DOI

Introduction

This repository hosts the code underlying the book An Introduction to Spatial Data Analysis and Statistics: A Course in R, by Antonio Paez:

Paez A (2021). An Introduction to Spatial Data Analysis and Statistics: A Course in R. McMaster Invisible Press. ISBN: 978-1-7778515-0-7

The book is free to read online at https://paezha.github.io/spatial-analysis-r.

Resources for Students and Instructors

Presentation slides

I have created a set of presentation slides in mentimeter for each substantive chapter in the book. I use these as mini-lectures in a flipped classroom format in my course, but they can be used as a template for creating longer presentations or lectures.

Chapter Mentimeter Slides Static pdf file
Chapter 3 Introduction to Mapping pdf
Chapter 5 Mapping in R Continued pdf
Chapter 7 Maps as Processes pdf
Chapter 9 Point Pattern Analysis I pdf
Chapter 11 Point Pattern Analysis II pdf
Chapter 13 Point Pattern Analysis III pdf
Chapter 15 Point Pattern Analysis IV pdf
Chapter 17 Point Pattern Analysis V pdf
Chapter 19 Area Data I pdf
Chapter 21 Area Data II pdf
Chapter 23 Area Data III pdf
Chapter 25 Area Data IV pdf
Chapter 27 Area Data V pdf
Chapter 29 Area Data VI pdf
Chapter 31 Spatially Continuous Data I pdf
Chapter 33 Spatially Continuous Data II pdf
Chapter 35 Spatially Continuous Data III pdf
Chapter 37 Spatially Continuous Data IV pdf

Template repository for projects

I created a template repository to help students get started with the use of GitHub and R Markdown for collaborative work on term projects. In my own course adoption of this workflow is completely optional. Not every student/group has the inclination/time to adopt this approach, but those who do produce very professional-looking reports and learn valuable skills.

Examples of projects

There will be some examples of projects in this repository.

Contributing

An advantage of an Open Educational Resource compared to traditional publishing (besides it being free!) is that it is a live, ongoing project, for as long as anyone cares for it. If you are using this resource, I would encourage you to contribute to improve it, by:

  • suggesting improvements to the text, e.g. clarifying unclear sentences, fixing typos (see guidance from Yihui Xie);
  • proposing changes to the code, e.g. to do things in a more efficient way; and
  • making requests to develop content (see the project’s issue tracker).

Many thanks to all contributors to the book so far via GitHub (this list will update automatically): Robinlovelace.

Reproducing the book

TODO <!-- To ease reproducibility, we created the geocompkg package. Installing it from GitHub will install all the R packages needed build the book (you will a computer with necessary system dependencies and the remotes package installed):

install.packages("remotes")
remotes::install_github("geocompr/geocompkg")

You need a recent version of the GDAL, GEOS, PROJ and UDUNITS libraries installed for this to work on Mac and Linux. See the sf package's README for information on that.

Once the dependencies have been installed you should be able to build and view a local version the book with:

bookdown::render_book("index.Rmd") # to build the book
browseURL("_book/index.html") # to view it

The book in binder

I think I got the binder to work.

Launch Rstudio Binder

The book in a Docker container

TODO <!-- To ease reproducibility we have made Docker images available, at geocompr/geocompr on DockerHub. These images allow you to explore Geocomputation with R in a virtual machine that has up-to-date dependencies.

After you have installed docker and set-it up on your computer you can start RStudio Server without a password (see the Rocker project for info on how to add a password and other security steps for public-facing servers):

docker run -p 8787:8787 -e DISABLE_AUTH=TRUE geocompr/geocompr

If it worked you should be able to open-up RStudio server by opening a browser and navigating to http://localhost:8787/ resulting in an up-to-date version of R and RStudio running in a container.

Start a plain R session running:

docker run -it geocompr/geocompr R

See the geocompr/docker repo for details, including how to share volumes between your computer and the Docker image, for using geographic R packages on your own data and for information on available tags. -->

Reproducing this README

TODO

Citations

TODO

spatial-analysis-r's People

Contributors

robinlovelace avatar soukhova avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

spatial-analysis-r's Issues

minor typo section 3.6

if (!require("leaflet")) install.packages('magrittr')
should be
if (!require("magrittr")) install.packages('magrittr')
(i presume)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.