gravatar

CPEL

Coastal Plant Ecology Lab

Recently Published

Computing Summary Statistics
How to use functions in base R and the dplyr package to construct a new dataframe with summary statistics.
Intro to loading packages and data in R
For the beginnings of your R adventures. Does not cover any analysis, Only the basics of loading packages and data.
Intro to Plotting in R
Plotting using both base R and the package ggplot2. Includes barplot (with error bars), boxplot, scatterplot, and interaction plot. A starting point for many flexible and sensible plots.
Basic Nonparametric Tests
Intro to nonparametric tests including the Wilcoxon (Mann-Whitney U) and Kruskal-Wallis tests. Also a Nemenyi post-hoc test.
Multiple Linear Regression
Conducting a Multiple Linear Regression including assumptions testing, running the test, model comparison using AIC, and calculating Variable Inflation Factors (VIFs).
Simple Linear Regression
How to conduct a simple linear regression including assumptions testing, running the test, and basic plotting.
Data Exploration
How to efficiently explore your data including options to view data, data structure and summaries, scatterplots, scatterplot and correlation matrices, histograms, and quantile (q-q) plots.
Intro to Data Management in R
Basic data management in R including summarizing data by groups (e.g. means for each group), creating matrices (by average value, abundance, and presence/absence), and subsetting using base R.
ANCOVA
ANCOVA (ANalysis of COVAriance) including assumptions testing, running an ANCOVA, and post-hoc comparisons.
ANOVA and t-test
One and two-way ANOVA and t-test including assumptions testing, running the tests, and post-hoc comparisons.
Creating Data Subset
Using `dplyr` functions to subset data (and create new datasets) from a master dataset.
Running NMDS using metaMDS in vegan
Full set of steps to go from community composition data to complete NMDS analysis and plotting.
Species Average Trait Value Calculation
Steps to calculating species averages for traits.
Community Weighted Mean (CWM) Calculation
Sample code for calculating trait CWMs using species abundance as weights.
Converting data from "long" to "wide"
This tutorial uses the tidyr package to help users convert long form data to wide form data. For example, stacked to matrix style.