elfchange: Plot percent richness change for various percent flow...

View source: R/elfchange.R

elfchangeR Documentation

Plot percent richness change for various percent flow reductions

Description

Calculates and plots percent richness change resulting from streamflow reductions

Usage

elfchange(stats, yaxis_thresh, xlabel = FALSE, ylabel = FALSE)

Arguments

stats

A dataframe of ELF statistics

yaxis_thresh

Value used for specifying y-axis max limit

xlabel

Used to overwrite default x-axis label

ylabel

Used to overwrite default y-axis label

Value

Plot of percent decreases in richness from flow reductions

Examples


# We don't run this example by R CMD check, because it takes >10s

# Generate plot of percent richness change for various percent flow reductions
watershed.df <- elfdata(watershed.code = '0208020104', ichthy.localpath = tempdir())
breakpt <- 500
elf <- elfgen(
   "watershed.df" = watershed.df,
   "quantile" = 0.95,
   "breakpt" = breakpt,
   "xlabel" = "Mean Annual Flow (ft3/s)",
   "ylabel" = "Fish Species Richness"
   )
elfchange(elf$stats, "yaxis_thresh" = 25)


elfgen documentation built on Aug. 23, 2022, 5:07 p.m.