plot_iec_cor: Plot estimated IEC vs. environmental gradient

Description Usage Arguments Examples

Description

plot_iec_cor plots the IEC scores estimated by est_iec (y-axis) against the environmental gradient (x-axis). Generally this is used with the original environmental gradient in its unscaled format (i.e., before using scale10). Note that this function is only applicable when applying est_iec to the same sites used to generate the taxa specific Biotic Response Curves (est_brc).

Usage

1
2
plot_iec_cor(iec, env_grad, main = NULL, xlab = "Original Gradient",
  time = TRUE)

Arguments

iec

the output data frame from est_iec.

env_grad

numeric vector of environmental gradient scores, one for each site.

main

an overall title for the plot (e.g., "Fish 2015 (total ag)").

xlab

name of original gradient for the x axis (default is "Original Gradient")

time

logical indicating if time of plotting should be printed below the main title.

Examples

1
2
3
4
5
data(list = c("fish_sp", "fish_grad"))
grad <- scale10(fish_grad, TRUE)
brc <- est_brc(fish_sp, grad)
iec <- est_iec(fish_sp, brc, n_reps = 10)
plot_iec_cor(iec, fish_grad, "fish")

ngwalton/iec documentation built on May 23, 2019, 4:43 p.m.