bkpt_ymax: Identify breakpoint location with Ymax

View source: R/bkpt-ymax.R

bkpt_ymaxR 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)


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