shift_supply: Shift Supply

Description Usage Arguments Value See Also Examples

Description

Takes a tibble that represents a system of supply and demand and creates another curve by shifting one of the already existing supply curves.

Usage

1
shift_supply(supply_and_demand_system, outwards = TRUE, curve = supply)

Arguments

supply_and_demand_system

A tibble created from create_supply_and_demand()

outwards

Whether you want to shift the demand outwards or not. Default: TRUE

curve

Which of the existing demands you want to shift: i.e., shift a demand already shifted demand1, Default: demand

Value

A tibble with an extra demand curve resulting from the shifting.

See Also

enquo

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.