-
Git and GitHub (Hadley Wickham): http://r-pkgs.had.co.nz/git.html
-
R development using GitHub (Gabor Csardi): https://github.com/MangoTheCat/github-workshop
-
Working with RStudio, Git, GitHub (STAT 545): http://stat545-ubc.github.io/git00_index.html
-
Version control with git (R. Fitzjohn): http://nicercode.github.io/2014-02-13-UNSW/lessons/70-version-control/
-
Version control with Git (Software Carpentry): http://software-carpentry.org/v5/novice/git/index.html
I think the two most important messages that people can get from a short course are:
a) the material is important and worthwhile to learn (even if it's challenging), and b) it's possible to learn it!
For those reasons, I usually start by diving as quickly as possible into visualisation. I think it's a bad idea to start by explicitly teaching programming concepts (like data structures), because the pay off isn't obvious. If you start with visualisation, the pay off is really obvious and people are more motivated to push past any initial teething problems. In stat405, I used to start with some very basic templates that got people up and running with scatterplots and histograms - they wouldn't necessary understand the code, but they'd know which bits could be varied for different effects.
Apart from visualisation, I think the two most important topics to cover are tidy data (i.e. http://www.jstatsoft.org/v59/i10/ + tidyr) and data manipulation (dplyr). These are both important for when people go off and apply
- H. Wickham: Official ggplot2 documentation
- H. Wickham: ggplot2 book
- W. Chang: R graphics cookbook and Cookbook for R
- Z. Ross: Beautiful plotting in R: A ggplot2 cheatsheet
- D. Koffman: Introduction to ggplot2
- R. Saccilotto: Tutorial: ggplot2
- R. Hartman: How to format plots for publication using ggplot2
- G. Williams: Visualising data with ggplot2
In the shell:
git clone https://github.com/hadley/adv-r.git
gem install jekyll mime-types
In R:
library(ggplot2) | |
library(shiny) | |
# Call ggbrush with a ggplot2 object, and the dimensions which | |
# should be brushed (try "xy" for scatter, "x" for histogram). | |
# The plot will show in RStudio Viewer or your web browser, and | |
# any observations selected by the user will be returned. | |
ggbrush <- function(plotExpr, direction = c("xy", "x", "y")) { | |
# See below for definition of dialogPage function |
#' @export | |
coord_proj <- function(proj="+proj=robin +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs", | |
inverse = FALSE, degrees = TRUE, | |
ellps.default="sphere", xlim = NULL, ylim = NULL) { | |
try_require("proj4") | |
coord( | |
proj = proj, | |
inverse = inverse, | |
ellps.default = ellps.default, | |
degrees = degrees, |
bottles_of_beer <- function(i = 99) { | |
message("There are ", i, " bottles of beer on the wall, ", i, " bottles of beer.") | |
while(i > 0) { | |
tryCatch( | |
Sys.sleep(1), | |
interrupt = function(err) { | |
i <<- i - 1 | |
if (i > 0) { | |
message( | |
"Take one down, pass it around, ", i, |
find_matching_paren <- function(str, open_paren = "(") { | |
close_paren <- switch(open_paren, "(" = ")", "{" = "}", "[" = "]") | |
# Split string into single characters | |
str <- strsplit(str, "")[[1]] | |
## Find the first openening parenthesis in the string | |
start_pos <- grep(paste0("\\", open_paren), str)[1] + 1 | |
counter <- 1 |
library(devtools) | |
install_github("ropensci/prism") | |
library(leaflet) | |
library(raster) | |
library(prism) | |
## Set default path for raster files | |
options(prism.path = "~/prismtmp") | |
get_prism_normals(type="tmean",resolution = "4km",annual =T, keepZip=F) |
- The presentation in PDF format.
- Publishing Landsat on AWS, the use of cloud infrastructure for public data distribution and processing.
- On the size of Google Maps, now larger than most national mapping agencies.
- OpenTripPlanner and OpenStreetMap, how open data and open source leverage each other and are in turn re-consumed by governmnet and civil society.
- Michael H Goldhaber on the attention economy, a prescient take on content and the internet from 1997.
- Google aquires Skybox Imaging.
- Bibiana McHugh on Portland Trimet's [triple open strategy](https://prezi.com/vmydw-uwqalm/copy-of-you-complete