andrewheiss / reconPlots

Convenient functions for plotting economics-style supply/demand curves in R
MIT License
35 stars 4 forks source link

Easy supply-demand curves #1

Open The-Pezman opened 4 years ago

The-Pezman commented 4 years ago

Would love to see a function - perhaps called sdcurve() - that will create a simple supply-demand intersection. Default graph would like have slopes of 1 and -1, with an intersection in the middle and dotted lines for p0 and q0. But additional parameters could affect the slope, adding additional supply or demand curves for short-run/long-run transitions, etc.

andrewheiss commented 4 years ago

An extension of this could be adding shaded areas for surplus/DWL, like here: https://econf19.classes.andrewheiss.com/class/08-class/ (code for all of that here: https://github.com/andrewheiss/econf19.classes.andrewheiss.com/blob/master/content/class/08-class.Rmd)

andrewheiss commented 4 years ago

And also an extension of that could include monopoly conditions

image