specaccum
and plot.specaccum
(accumresult(x,y="",factor="",level,scale="",method="exact",permutations=100,
conditioned=T, gamma="boot", ...)
accumplot(xr,addit=F,labels="",col=1,ci=2,pch=1,type="p",cex=1,xlim=c(1,xmax),
ylim=c(1,rich),xlab="sites",ylab="species richness",...)
accumcomp(x,y="",factor,scale="",method="exact",permutations=100,
conditioned=T, gamma="boot",plotit=T,labelit=T,legend=T,rainbow=T,
xlim=c(1,max),ylim=c(0,rich),type="p",xlab="sites",
ylab="species richness",...)
specaccum
). Method "collector" adds sites in the order they happen to be in the data, "random" adds sites in random order, "exact"specaccum
).specaccum
).specaccum
).specaccum
or accumresult
.plot.specaccum
).plot.specaccum
).points
).plot
).plot
).specaccum
or plot.specaccum
.specaccum
and plot.specaccum
.specaccum
is called by these functions to calculate the actual species accumulation curve.
Functions accumresult
and accumcomp
allow to calculate species accumulation curves for subsets of the community and environmental data sets. Function accumresult
calculates the species accumulation curve for the specified level of a selected environmental variable. Method accumcomp
calculates the species accumulation curve for all levels of a selected environmental variable separatedly. Both methods allow to scale the horizontal axis by multiples of the average of a selected continuous variable from the environmental dataset (hint: add the abundance of each site to the environmental data frame to scale accumulation results by mean abundance).
Functions accumcomp
and accumplot
provide alternative methods of plotting species accumulation curve results, although function plot.specaccum
is called by these functions. When you choose to add a legend, make sure that you click in the graph on the spot where you want to put the legend.library(vegan)
data(dune.env)
data(dune)
dune.env$site.totals <- apply(dune,1,sum)
Accum.1 <- accumresult(dune, y=dune.env, scale='site.totals', method='exact', conditioned=TRUE)
Accum.1
accumplot(Accum.1)
accumcomp(dune, y=dune.env, factor='Management', method='exact', legend=FALSE, conditioned=TRUE)
## CLICK IN THE GRAPH TO INDICATE WHERE THE LEGEND NEEDS TO BE PLACED FOR
## OPTION WHERE LEGEND=TRUE (DEFAULT).
Run the code above in your browser using DataLab