Get R!
Go to — Install R — for instructions on installing the latest and greatest versions of R and RStudio.
Intro to R
This series of tutorials teaches the basics of importing data, using new packages, cleaning and summarizing data with “tidy” tools, and using ggplot2
to make charts and data visualizations.
- Create a new RStudio project and R script.
- Install new R packages.
- Create variables, lists, data frames.
- Read data into R.
- Arrange and filter your data.
- Solve a cat mystery.
- Become a pet detective.
Packages: readr
, dplyr
- Data transformations
- Add new columns.
- Summarize your data.
- Split groups and categories in your data.
- Save data.
- Make plots.
- Scatter plots and transparency.
- Add a smoothed trend line to the plot.
- Add titles, colors, and axis labels.
- Bar charts.
- Histograms.
Packages: ggplot2
- Read data from Excel.
- Make more plots.
- Add titles, colors, and axis labels.
- Box plots.
- Bar plots.
- Label points.
- Log transform your chart axis.
- Save charts to different formats.
- Connect to TEMPO.
Packages: readxl
, tidyr
, RODBC
, lubridate
Workshops
Each workshop dives into more detail on a common data anlaysis or visualization task.
Writing functions
Maps and shapefiles
- Collapse data spread across many columns.
- Fill in empty rows from Excel.
- Reorder ggplots from highest to lowest.
- Read a whole folder of files at once.
- Clean spaces and special characters from column names.
- Parse dates into season, month, quarter, day of the year.
- Read a set range of cells from Excel.
Packages: tidyr
, readxl
, lubridate
, forcats
, ggplot2