Open Source for Open Science (OSOS) 2014 is a free summer workshop featuring an introduction to R, *nix commands, and open source GIS. This two and a half day course will provide tools for reading in, manipulating and analyzing your data in R, as well as other open-source tools for visualizing and manipulating spatial data. It will provide a basic introduction to scientific programming, creating publication quality graphics in R, as well as wrangling messy data with *nix commands in bash. Although the course is aimed at the EEB graduate student, you need not be in EEB or a graduate student to attend. The modular design of the course will allow participants to attend sections of the course that are useful to them and skip the parts that are not. We encourage you to attend the first day if you are not an avid R user.
Instructors confirmed to teach in this workshop are Rebecca Clark, Thomas Olszewski, Claudio Casola, Mike Treglia, and Michelle Lawing.
Requirements
No previous knowledge of R is required. The course is open to all students, postdocs, and faculty. A laptop is required. If you do not have a laptop, please contact Michelle and we will set you up with a loaner.
Location
ILSB 1st Floor Auditorium [Map]
Schedule
The workshop will start at 9:00 am July 10th and wrap up around noon on July 12th. Snacks and coffee will be provided during morning and afternoon breaks and participants will have an hour for lunch.
Day 1 – July 10th
Location: ILSB Main Floor Auditorium
Get the ZIP file that contains all the course files HERE
9:00 am
Session 1 – Introduction to the R environment (Rebecca Clark)
Session 1 Handouts and Files
- Overview
- Interface Basics
- a. Simple calculations
- b. Variables and assignments
- c. Functions
- Loading Data
- a. Directories, paths, and finding files
- b. .csv and .txt
- c. Headers
- d. Formats (vectors and data frames)
- e. Group activity (“fixing” an input file for R)
- Manipulating data
- a. Subsetting
- b. Indexing
- c. Handling missing values
– Lunch Break –
1:00 pm
Session 2 – Introduction to the R environment continued (Michelle Lawing)
Session 2 Handouts and Files
- Organization of projects
- a. File hierarchy
- b. Reference cards
- c. R style guide
- d. Well-documented scripts
- Base plotting
- Some simple statistics
- a. Regression example with some plotting
- b. ANOVA example with sums of squares explanation
- Packages and CRAN
- Where to go for help
- R Studio
- Wrap-up
Day 2 – July 11th
9:00 am
Session 3 – R for Scientific Programming (Tom Olszewski)
Session 3 Handouts and Files
- Introduction to programming
- a. Control structures
- b. Vector notation
- c. How to write instructions as a script
- Random walk example
- Randomization with Monte Carlo and bootstrapping
– Lunch Break –
1:00 pm
Session 4 – *nix commands in bash and R (Claudio Casola)
Session 4 Handouts and Files
- *nix commands
- Regular expressions
- Invoking R from command line
3:00 pm
Session 5 – Publication Quality Graphics (Rebecca Clark)
Session 5 Handouts and Files
- Base graphics details
- Plotting with lattice
- Plotting with ggplot2
Day 3 – July 12th
9:00 am
Session 6 – Open Source GIS (Mike Treglia)
Session 6 Handouts and Files
- Introduction to GIS
- a. Capabilities
- b. Data types and formats
- c. Projections
- d. Common software
- Working with QGIS
- a. Introduction to QGIS
- b. Loading and Viewing Spatial Data
- c. Dealing with Projections
- d. Some Basic Vector Operations
- e. Some Basic Raster Operations
- f. Using Vector and Raster Datasets Together
- g. Making a Map
- Q&A to cover any other elements of interest
Websites