plot_supply_and_demand: Plot Supply and Demand

Description Usage Arguments Value See Also Examples

Description

Given a tibble representing a system of supply and demand, it plots all of the curves.

Usage

1
plot_supply_and_demand(supply_and_demand_system, consumer_surplus = TRUE)

Arguments

supply_and_demand_system

A tibble that represents a system of linear equations for supply and demand created with create_supply_and_demand().

consumer_surplus

Whether you want to plot the consumer surplus or not. Default: TRUE

Value

A ggplot2 plot.

See Also

gather mutate,filter map

Examples

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)

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