This is the GitHub repository of R CODER and R CHARTS๐, two websites that provide detailed R tutorials in English and Spanish.
- ๐ป If you want to learn R from zero take a look to our free course.
- ๐ซ Contact us: [email protected]
Microeconomics/macroeconomics charts in ggplot2
Home Page: https://r-coder.com/economics-charts-r/
License: Other
This is the GitHub repository of R CODER and R CHARTS๐, two websites that provide detailed R tutorials in English and Spanish.
I think the value function from Prospect Theory would be a good addition:
(Wrote a recent post that touched briefly on Prospect Theory and couldn't find any R packages for making a quick example chart...)
I'm not sure if this is possible but I think it's closely related to #1 (comment).
Having Edgeworth will be nice. Thanks for the package and your efforts.
In the standard model the labor supply curve can be backward bending if the income effect dominates the substitution effect. Essentially this looks like a parabola with respect to the y axis, but determining the exact shape would depend on the particular maximization problem.
Hi, I'd appreciate if this package had an option for infinitely elastic or inelastic supply and demand curves.
Hello, your initiative is excellent.
It would be possible to add that a basic graph could be added that joins the budget constraint with the indifference curve.
Thanks.
Hello again. A second suggestion. tax_graph() doesn't allow supply_fun to be modified by a negative number (ie a subsidy). It'd be great if you could extend the function to incorporate subsidies!
Thanks!!
To fix, replace at line 82 in the demand.R file with this
if(type == "line") { curve <- data.frame(x = c(xmax, 0.9), y = c(0.9, ymax)) m <- TRUE }
Thanks for your work on this project -- I really like it!
I love this package and I thank you very much for it. However, I am unable to pass a data.frame to supply() and demand() to override the sample curves. When I try to do so I receive this error:
Error in `geom_line()`:
! Problem while computing aesthetics.
โน Error occurred in the 1st layer.
Caused by error in `FUN()`:
! object 'y' not found
Note that the same is not true for sdcurve(): passing a data.frame with x and y columns works perfectly there.
It would be awesome if you could write an example on how to achieve the desired behavior in supply() and demand().
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.