Description Usage Arguments Value See Also Examples
Given a tibble representing a system of supply and demand, it plots all of the curves.
1 | plot_supply_and_demand(supply_and_demand_system, consumer_surplus = TRUE)
|
supply_and_demand_system |
A tibble that represents a system of linear equations for supply and demand created with |
consumer_surplus |
Whether you want to plot the consumer surplus or not. Default: TRUE |
A ggplot2 plot.
1 2 3 4 5 6 7 8 9 | ## Not run:
if(interactive()){
create_supply_and_demand() %>%
shift_demand() %>%
shift_supply() %>%
plot_supply_and_demand()
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.