Skip to contents

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

Usage

consumption_paths(
  .rebound_data,
  graph_params = ReboundTools::path_graph_params,
  rebound_segments = ReboundTools::rebound_segments,
  graph_type = ReboundTools::graph_types$consumption,
  q_dot_s_star = ReboundTools::star_vars$q_dot_s_star,
  C_dot_o_star = ReboundTools::star_vars$C_dot_o_star,
  Delta_q_dot_s_hat = ReboundTools::Delta_vars$Delta_q_dot_s_hat,
  Delta_C_dot_o_hat = ReboundTools::Delta_vars$Delta_C_dot_o_hat,
  Delta_q_dot_s_bar = ReboundTools::Delta_vars$Delta_q_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().

graph_params

See ReboundTools::graph_params.

rebound_segments

See ReboundTools::rebound_segments.

graph_type

See ReboundTools::graph_types.

q_dot_s_star, C_dot_o_star

See ReboundTools::star_vars.

Delta_q_dot_s_hat, Delta_C_dot_o_hat, Delta_q_dot_s_bar, Delta_C_dot_o_bar

See ReboundTools::Delta_vars.

graph_df_colnames

See ReboundTools::graph_df_colnames.

Value

A data frame of information for creating consumption path graphs.

Details

The consumption path graph is always indexed, so there is no indexed argument.

Examples

load_eeu_data() %>% 
  rebound_analysis() %>% 
  consumption_paths()
#> # A tibble: 12 × 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… Consumpti… isub      #9914…         1
#>  2 None yet  Lamp       Incandesc… LED     Consumpti… isub      #9914…         1
#>  3 None yet  Car, r = 0 Ford Fusi… Ford F… Consumpti… isub      #9914…         1
#>  4 None yet  Car        Ford Fusi… Ford F… Consumpti… dsub      #9914…         1
#>  5 None yet  Lamp       Incandesc… LED     Consumpti… dsub      #9914…         1
#>  6 None yet  Car, r = 0 Ford Fusi… Ford F… Consumpti… dsub      #9914…         1
#>  7 None yet  Car        Ford Fusi… Ford F… Consumpti… dinc      #E76F…         1
#>  8 None yet  Lamp       Incandesc… LED     Consumpti… dinc      #E76F…         1
#>  9 None yet  Car, r = 0 Ford Fusi… Ford F… Consumpti… dinc      #E76F…         1
#> 10 None yet  Car        Ford Fusi… Ford F… Consumpti… iinc      #E76F…         1
#> 11 None yet  Lamp       Incandesc… LED     Consumpti… iinc      #E76F…         1
#> 12 None yet  Car, r = 0 Ford Fusi… Ford F… Consumpti… iinc      #E76F…         1
#> # ℹ 6 more variables: linetype <chr>, x <dbl>, y <dbl>, xend <dbl>, yend <dbl>,
#> #   end_arrow <lgl>