Skip to contents

Make a data frame of segments for an energy rebound graph. Each stage of the rebound process is represented in the data frame.

Usage

energy_paths(
  .rebound_data,
  indexed = FALSE,
  graph_params = ReboundTools::path_graph_params,
  rebound_segments = ReboundTools::rebound_segments,
  graph_type = ReboundTools::graph_types$energy,
  k = ReboundTools::eeu_base_params$k,
  I_E = ReboundTools::eeu_base_params$I_E,
  R_alpha_orig = ReboundTools::orig_vars$R_alpha_orig,
  E_dot_s_orig = ReboundTools::orig_vars$E_dot_s_orig,
  E_dot_emb_orig = ReboundTools::orig_vars$E_dot_emb_orig,
  C_dot_omd_orig = ReboundTools::orig_vars$C_dot_omd_orig,
  C_dot_o_orig = ReboundTools::orig_vars$C_dot_o_orig,
  S_dot_dev = ReboundTools::star_vars$S_dot_dev,
  Delta_E_dot_emb_star = ReboundTools::Delta_vars$Delta_E_dot_emb_star,
  Delta_C_dot_omd_star = ReboundTools::Delta_vars$Delta_C_dot_omd_star,
  Delta_E_dot_s_hat = ReboundTools::Delta_vars$Delta_E_dot_s_hat,
  Delta_C_dot_o_hat = ReboundTools::Delta_vars$Delta_C_dot_o_hat,
  N_dot_hat = ReboundTools::hat_vars$N_dot_hat,
  Delta_E_dot_s_bar = ReboundTools::Delta_vars$Delta_E_dot_s_bar,
  Delta_C_dot_o_bar = ReboundTools::Delta_vars$Delta_C_dot_o_bar,
  graph_df_colnames = ReboundTools::graph_df_colnames
)

Arguments

.rebound_data

A data frame of rebound analysis results, likely created by rebound_analysis().

indexed

A boolean telling whether the rebound path should be indexed to 1 at its start.

graph_params

See ReboundTools::graph_params.

rebound_segments

See ReboundTools::rebound_segments.

graph_type

See ReboundTools::graph_types.

k, I_E

See ReboundTools::eeu_base_params.

R_alpha_orig, E_dot_s_orig, E_dot_emb_orig, C_dot_omd_orig, C_dot_o_orig

See ReboundTools::orig_vars.

S_dot_dev

See ReboundTools::star_vars.

Delta_E_dot_emb_star, Delta_C_dot_omd_star, Delta_E_dot_s_hat, Delta_C_dot_o_hat, Delta_E_dot_s_bar, Delta_C_dot_o_bar, N_dot_hat

See ReboundTools::Delta_vars.

graph_df_colnames

See ReboundTools::graph_df_colnames.

Value

A data frame with energy rebound path segments.

Examples

load_eeu_data() %>% 
  rebound_analysis() %>% 
  energy_paths()
#> # A tibble: 24 × 14
#>    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… Energy     dempl     #1507…       1  
#>  2 None yet  Lamp       Incandesc… LED     Energy     dempl     #1507…       1  
#>  3 None yet  Car, r = 0 Ford Fusi… Ford F… Energy     dempl     #1507…       1  
#>  4 None yet  Car        Ford Fusi… Ford F… Energy     emb       #1507…       1.5
#>  5 None yet  Lamp       Incandesc… LED     Energy     emb       #1507…       1.5
#>  6 None yet  Car, r = 0 Ford Fusi… Ford F… Energy     emb       #1507…       1.5
#>  7 None yet  Car        Ford Fusi… Ford F… Energy     OMd       #1507…       1  
#>  8 None yet  Lamp       Incandesc… LED     Energy     OMd       #1507…       1  
#>  9 None yet  Car, r = 0 Ford Fusi… Ford F… Energy     OMd       #1507…       1  
#> 10 None yet  Car        Ford Fusi… Ford F… Energy     isub      #9914…       1  
#> # ℹ 14 more rows
#> # ℹ 6 more variables: linetype <chr>, x <dbl>, y <dbl>, xend <dbl>, yend <dbl>,
#> #   end_arrow <lgl>