Introduction to community data analysis using the vegan package in R
Welcome to the GitHub repository for workshop on community ecology analyses using the
vegan package at ESA 2015.
Location and time:
Saturday, August 8, 2015
12:00 PM - 5:00 PM
Location: Room 306, Baltimore Convention Center
The R statistical language has enjoyed wide and rapid adoption by many ecologists, and is used across many ecological subdisciplines for statistical analyses and the production of publication-quality figures. For community ecologists using R, one of the most-used, and most-useful, add-on packages is vegan, which provides a wide range of functionality covering inter alia ordination, diversity analysis, and ecological simulation. This workshop will offer participants a practical introduction to some of the most useful functions available within vegan. We will focus in particular on the use of NMDS as an ordination method and on how to visualize the results using related plotting tools. We will also cover between-group tests such as PERMANOVA.The workshop will assume that participants have a basic level of familiarity with working with data in R, including data import and basic indexing and subsetting. Participants that do not have this basic level of familiarity with R may want to take the Introduction to R workshop offered earlier by the same organizers. Some familiarity with distance measures is recommended but not required as we will briefly cover data transformation, standardization and multivariate distance measures. All participants must bring their own laptop with R and RStudio (available free online for all platforms at rstudio.com) pre-installed.
Pre workshop instructions
If you don't already have R set up with a suitable code editor, we recommend downloading and installing R and RStudio Desktop for your platform. Once installed, open RStudio and install the following packages. Simply paste these commands into your prompt.
install.packages("vegan", dependencies = TRUE) install.packages("plyr") install.packages("reshape2")
Extra check for MacOS X users
In order to use the
orditkplot() function you need a working Tcl/Tk installation. This may not be installed on Macs; to check run the following code
library("vegan") data(varespec) orditkplot(rda(varespec))
If you get errors and not a new window in which you can edit the biplot, then you probably don't have the correct setup on your system to use Tcl/Tk. Refer to the Tcl/Tk Issues section of the R Mac OS X FAQ.
Downloading code/data from this repository
If you're already familiar with
Git, then simply clone this repo. If you're not familiar with Git, simply hit the Download ZIP button on the right side of this page. If you're not sure where to save it, just download and unzip to your Desktop.
If you're having any trouble with these steps please drop us an email. We'll also strive to have local copies if you forget to install any of these tools.
This work is licensed under a Creative Commons Attribution 4.0 International License.