shift_demand: Shift Demand

Description Usage Arguments Details 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 demands.

Usage

1
shift_demand(supply_and_demand_system, outwards = TRUE, curve = demand)

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

Details

DETAILS

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_demand(demand = demand1) %>%
 plot_supply_and_demand()
 }

## End(Not run)

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