The morning session will cover the basics of R and SWMPr. R is a data analysis software and programming language and SWMPr is an R package designed for working with SWMP data.
Objectives
- Review some R basics such as importing data and plotting
- Demonstrate useful functions in the SWMPr package
- Investigate how real data from your Reserve can be processed and visualized
7:30am Software set-up/help
Instructors will assist workshop attendees with last‐minute software issues.
8:00am Introductions and data check
- Who are we and who are you
- Make sure everyone has the materials needed for the morning session
8:15am Powerpoint presentation
- Why it’s worth your effort to learn R
8:40am Part I: Data import and plots
- Refresher on reading in data and beginning to plot
- brief overview of some R basics
9:15am Part II: Using SWMPr to deal with difficult data, Case Study 1
Case Study 1: import_local and QAQC
- Learn to import data downloaded from CDMO directly into RStudio as a swmpr object
- Learn to select which qaqc flags you want to plot
10:00am BREAK
10:15am Part II: Using SWMPr to deal with difficult data, Case Study 2
Case Study II: aggreswmp
- aggregate by time interval
- aggregate by function
- try some different plotting types
11:00am Part II: Using SWMPr to deal with difficult data, Case Study 3
Case Study III: Overplotting ISCO and WQ data
- investigate multiple parameters on the same plot
- bonus material on handling NAs (download)
11:30am Part III: Bring your own data
- Try these codes on your own data!