diff --git a/docs/class1.Rmd b/docs/class1.Rmd new file mode 100755 index 0000000..09be387 --- /dev/null +++ b/docs/class1.Rmd @@ -0,0 +1,91 @@ +--- +title: "Geospatial Analysis with R" +subtitle: Class 1 +output: + xaringan::moon_reader: + lib_dir: libs + css: ["default", "lucy", "middlebury-fonts", "themes/class1.css"] + nature: + highlightStyle: github + highlightLines: true + countIncrementalSlides: false +--- + +```{r setup, include=FALSE} +# knitr::opts_chunk$set(echo = FALSE) +``` + +```{r, eval = FALSE} +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 + +```{r, out.width = "70%", echo=FALSE, fig.align='center'} +knitr::include_graphics("figures/class1_1.png") +``` + +--- + +## Reproducibility 2 +```{r, out.width = "50%", echo=FALSE, fig.align='center'} +knitr::include_graphics("figures/class1_2.png") +``` +--- + +## 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. + + + + + diff --git a/docs/class1.html b/docs/class1.html new file mode 100755 index 0000000..0599d7e --- /dev/null +++ b/docs/class1.html @@ -0,0 +1,234 @@ + + +
+