bkpt_ymax {elfgen}R Documentation

Identify breakpoint location with Ymax

Description

This applies the Ymax elfgen method. This approach treats the maximum observed species richness value as the breakpoint. This function begins by locating the point with the highest y-value in the full dataset, then utilizing the associated x-value as the breakpoint.

Usage

bkpt_ymax(watershed.df)

Arguments

watershed.df

A dataframe of sites with ecological and hydrologic data

Value

Breakpoint value is returned

Examples


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

watershed.df <- elfdata(watershed.code = '0208020104', ichthy.localpath = tempdir())
bkpt_ymax(watershed.df)


[Package elfgen version 2.3.3 Index]