## Draw species response curve on environmental variable
specresponse(schedenveg$ArrElat, schedenenv$soil_depth)
## Draw species response curve on environmental variable with
## custom labels
specresponse(schedenveg$ArrElat, schedenenv$soil_depth, main = "Arrhenatherum elatius",
xlab = "Soil depth")
## Draw species response curve on ordination axes
## First calculate DCA
library(vegan)
scheden.dca <- decorana(schedenveg)
# Using a linear model on first axis
specresponse(schedenveg$ArrElat, scheden.dca, method = "ord", model = "linear")
# Using an unimodal model on second axis
specresponse(schedenveg$ArrElat, scheden.dca, method = "ord", axis = 2)
Run the code above in your browser using DataLab