curve_intersect_two: Find Intersection

Description Usage Arguments Details Value

Description

Given a dataframe with two curves (first the x) and then the output of functions, it approximates the intersection between the functions.

Usage

1

Arguments

df

A matrix with the curves approximated numerically.

Details

This function was taken directly from https://www.andrewheiss.com/blog/2017/09/15/create-supply-and-demand-economics-curves-with-ggplot2/

Value

A tibble with the point of intersection between the curves.


David-Salazar/ggsupplyDemand documentation built on May 8, 2019, 3:11 a.m.