Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

richness

Species richness


Description

In these data the response is the species richness represented by a count of the number of plant species on plots that have different biomass and three different soil pH levels: low, mid, and high. See Crawley (2007, page 534).

Usage

data(richness)

Format

A data frame with 90 rows and 3 variables:

Biomass

a numeric vector giving the value of the biomass in the plots.

pH

a factor giving the soil pH level in the plots: "low", "mid", and "high".

Species

a numeric vector giving the number of plant species in the plots.

References

Crawley M.J. (2007) The R Book. John Wiley & Sons, Chichester.

Examples

with(richness,{
  plot(Biomass, Species,
       col=apply(as.matrix(pH),1,function(x) switch(x,"low"="red","mid"="black","high"="blue")),
       pch=apply(as.matrix(pH),1,function(x) switch(x,"low"=15,"mid"=16,"high"=17)))
  legend(8.5, 50, legend=c("low","mid","high"), col=c("red","black","blue"),
         pch=c(15,16,17), bty="n", cex=0.85, y.intersp=0.5, x.intersp=0.3,
         title="Soil pH level", title.adj=0.2)
})

glmtoolbox

Set of Tools to Data Analysis using Generalized Linear Models

v0.1.0
GPL-2 | GPL-3
Authors
Luis Hernando Vanegas [aut, cre], Luz Marina Rondón [aut], Gilberto A. Paula [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.