Description Usage Arguments Value Examples
Threshold data using the elbow method
1  | get_elbow_threshold(xvals, yvals, upper_plateau = FALSE)
 | 
xvals | 
 X values  | 
yvals | 
 Y values  | 
upper_plateau | 
 If   | 
The threshold, i.e. the value of the X axis where the distance between the Y value and the line connecting the first and last points is maximal.
1 2 3  |      xvals <- 1:20
     yvals <- c(20:11, -0.2 * 1:10 + 11)
     get_elbow_threshold(xvals, yvals)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.