Today we’ll be using the R package “vegan” for community analyses.
Open R and load
the package “vegan” from the “packages” menu.
Also, load “MASS.”
To use the package the data have to be in the form of a community matrix.
form is to have the species as columns and the plots as rows.
The package vegan has
several example data sets.
One of the examples comes from the famous 50 hectare plot
on Barro Colorado Island, Panama.
The data set has 50 rows, one for each of the hectares
in the plot, and one column for each of the 225 species found there.
The data are
numbers of individuals >10cm dbh.
We’ll read a lot of primary literature based on this
plot, and you have the data to play with. Paste the following into R:
#loads BCI data
#gives you the dimensions of the data set, (rows, columns)
#shows the data for rows 1:10 and columns 20:25
If you can’t see everything at once, scroll up: R records the output.
Now, look at the first 5 rows of columns 70:75.