Create iso-budget (expenditure) lines for a consumption path graph
Source:R/iso_lines.R
      iso_budget_lines_cons.RdThis function creates a data frame of constant-budget (expenditure) lines at various rebound stages. The iso lines are described by slope and intercept.
Usage
iso_budget_lines_cons(
  .rebound_data,
  graph_type = ReboundTools::graph_types$consumption,
  graph_params = ReboundTools::path_graph_params,
  p_s_orig = ReboundTools::orig_vars$p_s_orig,
  q_dot_s_orig = ReboundTools::orig_vars$q_dot_s_orig,
  tau_alpha_orig = ReboundTools::orig_vars$tau_alpha_orig,
  C_dot_cap_orig = ReboundTools::orig_vars$C_dot_cap_orig,
  C_dot_omd_orig = ReboundTools::orig_vars$C_dot_omd_orig,
  C_dot_g_orig = ReboundTools::orig_vars$C_dot_g_orig,
  M_dot_orig = ReboundTools::orig_vars$M_dot_orig,
  tau_alpha_star = ReboundTools::star_vars$tau_alpha_star,
  C_dot_cap_star = ReboundTools::star_vars$C_dot_cap_star,
  p_s_star = ReboundTools::star_vars$p_s_star,
  G_dot = ReboundTools::star_vars$G_dot,
  C_dot_omd_star = ReboundTools::star_vars$C_dot_omd_star,
  q_dot_s_hat = ReboundTools::hat_vars$q_dot_s_hat,
  C_dot_g_hat = ReboundTools::hat_vars$C_dot_g_hat,
  Delta_q_dot_s_hat = ReboundTools::Delta_vars$Delta_q_dot_s_hat,
  Delta_C_dot_cap_star = ReboundTools::Delta_vars$Delta_C_dot_cap_star,
  Delta_C_dot_omd_star = ReboundTools::Delta_vars$Delta_C_dot_omd_star,
  Delta_C_dot_g_hat = ReboundTools::Delta_vars$Delta_C_dot_g_hat
)Arguments
- .rebound_data
 A data frame of rebound information, likely created by
rebound_analysis().- graph_type
 - graph_params
 See
ReboundTools::graph_params.- tau_alpha_orig, p_s_orig, q_dot_s_orig, C_dot_cap_orig, C_dot_omd_orig, C_dot_g_orig, M_dot_orig
 - tau_alpha_star, C_dot_cap_star, C_dot_omd_star, p_s_star, G_dot
 - q_dot_s_hat, C_dot_g_hat
 - Delta_q_dot_s_hat, Delta_C_dot_cap_star, Delta_C_dot_omd_star, Delta_C_dot_g_hat
 
Examples
load_eeu_data() %>% 
  rebound_analysis() %>% 
  iso_budget_lines_cons()
#> # A tibble: 15 × 11
#>    Reference Case       Original   Upgrade graph_type line_name colour linewidth
#>    <chr>     <chr>      <chr>      <chr>   <chr>      <chr>     <chr>      <dbl>
#>  1 None yet  Car        Ford Fusi… Ford F… Consumpti… orig      black        0.1
#>  2 None yet  Lamp       Incandesc… LED     Consumpti… orig      black        0.1
#>  3 None yet  Car, r = 0 Ford Fusi… Ford F… Consumpti… orig      black        0.1
#>  4 None yet  Car        Ford Fusi… Ford F… Consumpti… star      black        0.1
#>  5 None yet  Lamp       Incandesc… LED     Consumpti… star      black        0.1
#>  6 None yet  Car, r = 0 Ford Fusi… Ford F… Consumpti… star      black        0.1
#>  7 None yet  Car        Ford Fusi… Ford F… Consumpti… hat       black        0.1
#>  8 None yet  Lamp       Incandesc… LED     Consumpti… hat       black        0.1
#>  9 None yet  Car, r = 0 Ford Fusi… Ford F… Consumpti… hat       black        0.1
#> 10 None yet  Car        Ford Fusi… Ford F… Consumpti… bar       black        0.1
#> 11 None yet  Lamp       Incandesc… LED     Consumpti… bar       black        0.1
#> 12 None yet  Car, r = 0 Ford Fusi… Ford F… Consumpti… bar       black        0.1
#> 13 None yet  Car        Ford Fusi… Ford F… Consumpti… ray       black        0.1
#> 14 None yet  Lamp       Incandesc… LED     Consumpti… ray       black        0.1
#> 15 None yet  Car, r = 0 Ford Fusi… Ford F… Consumpti… ray       black        0.1
#> # ℹ 3 more variables: linetype <chr>, slope <dbl>, intercept <dbl>