class: center, middle, inverse, title-slide .title[ # Geospatial Analysis with R ] .subtitle[ ## Class 1 ] --- ```r library(raster) library(viridis) ghana_dem <- getData(name = "alt", country = "GHA") png("inst/slides/figures/ghana-dem.png", bg = "transparent", height = 4, width = 3, res = 300, units = "in") par(mar = c(3, 0, 0, 0)) plot(as(extent(ghana_dem), "SpatialPolygons"), lty = 0) plot(ghana_dem, col = magma(100), add = TRUE, axes = FALSE, box = FALSE, legend = FALSE) plot(ghana_dem, col = magma(100), legend.only = TRUE, horizontal = TRUE, axis.args = list(col.axis = "white", col = "white", las = 2), legend.args = list(text = "", col = "white")) dev.off() ``` --- ## Class Overview - By the end of this class, you should: - Be comfortable in working with R, including most common geospatial functions - Have a good sense of where R is headed as a language - Know where to look when don't know how to do something - Be using R as part of a ___reproducible___ workflow - Course approach - (Largely) flipped model and emphasis on problem solving - Programming should be fun! (or at least intriguing) - Lab and office hours as help sessions --- ## Reproducibility 1 <img src="figures/class1_1.png" width="70%" style="display: block; margin: auto;" /> --- ## Reproducibility 2 <img src="figures/class1_2.png" width="50%" style="display: block; margin: auto;" /> --- ## Course Requirements - Let's have a look at the [Syllabus](syllabus.html) - Basic policies - Attendance and communication - Attention to detail --- ## Projects - Projects [page](projects.html) --- ## Getting Set Up/Homework - [README](https://github.com/agroimpacts/geospaar) - Get yourself a GitHub account, if you haven't - Send us your GitHub name (**!!**) - Install all necessary software on your local computer(s). - Set up your [personal access token](https://agroimpacts.github.io/geospaar/git-github.html) - **Read** Unit1-Module 1 before section 3.2.1, section 1.7 Style in Syllabus, and cheatsheet of RStudio and R markdown.