Description Usage Arguments Examples
Create supply and demand curves. By default, the function will use a default supply and a default demand curve, but this can be overridden passing new curves as additional arguments or modifying the xmax
and ymax
arguments.
Moreover, the function provides several arguments to customize the final output, like displaying the equilibrium points, the name of the curves, customizing the title, subtitle or axis labels, among others.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
... |
Specify the demand and supply curve or curves separated by commas (as |
xmax |
Numeric. Allows modifying the maximum X value for the default functions. |
ymax |
Numeric. Allows modifying the maximum Y value for the default functions. |
max.price |
Price ceiling. |
min.price |
Price floor. |
generic |
Boolean. If |
equilibrium |
Boolean. If |
main |
Main title of the plot. |
sub |
Subtitle of the plot. |
xlab |
Name of the X-axis. |
ylab |
Name of the Y-axis. |
curve_names |
Boolean. If |
names |
If |
linescol |
Color of the curves. It must be a vector of the same length as the number of displayed curves. |
bg.col |
Background color of the plot. |
1 | #TODO
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.