richness | R Documentation |
In these data the response is species richness represented by a count of the number of plant species on plots with different biomass and three different soil pH levels: low, mid, and high.
data(richness)
A data frame with 90 rows and 3 variables:
a numeric vector giving the value of the biomass in the plots.
a factor giving the soil pH level in the plots: "low", "mid", and "high".
a numeric vector giving the number of plant species in the plots.
Crawley M.J. (2007) The R Book. John Wiley & Sons, Chichester.
data(richness)
dev.new()
with(richness,plot(Biomass,Species,col=as.numeric(pH),pch=16))
legend("topright", legend=c("low","mid","high"), col=c(1:3), pch=16,
title="pH level", bty="n")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.