Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

palaeoSig (version 2.0-3)

centipede_plot: centipede_plot

Description

Plot of species WA optima and tolerance

Usage

centipede_plot(x, spp, minN2 = 1, mult = 1)

Arguments

x

A tolerance weighted weighted-average model from WA

spp

data.frame of species data used to train the WA model

minN2

numeric giving minimum N2 for inclusion in plot

mult

numeric multiplier for the tolerances

Value

A ggplot object.

Details

Extracts and sorts WA optima and tolerances and generates a ggplot. Tends only to work well when there are a reasonable number of taxa, otherwise it is difficult to read the names on the axis. Rare taxa can be exluded with the minN2 argument. The tol.cut argument in WA may need to be set to prevent very small tolerances in rare taxa. This function is very similar to the caterpillar plot, but produces a ggplot

Examples

Run this code
# NOT RUN {
library(rioja)
data(SWAP)
mod <- WA(SWAP$spec, SWAP$pH, tolDW=TRUE)
coef(mod)
centipede_plot(mod, spp = SWAP$spec, minN2 = 20)
# }

Run the code above in your browser using DataLab