diff --git a/articles/descriptive-analysis-best_case_worst_case_emission_profile.html b/articles/descriptive-analysis-best_case_worst_case_emission_profile.html index 7704ea4..2b2f854 100644 --- a/articles/descriptive-analysis-best_case_worst_case_emission_profile.html +++ b/articles/descriptive-analysis-best_case_worst_case_emission_profile.html @@ -681,8 +681,8 @@

-transition_risk_product_example <- example_transition_risk_company_emission_avg_best_case_worst_case()
-kable(transition_risk_product_example)
+transition_risk_company_example <- example_transition_risk_company_emission_avg_best_case_worst_case() +kable(transition_risk_company_example) @@ -786,7 +786,7 @@

De select(-all_of(c("sum_mode", col, "companies_id", "distinct_comp"))) |> distinct() } -emission_rank_avg_equal_weight_per_benchmark <- emission_rank_avg_per_benchmark(transition_risk_product_example, "emission_rank_avg_equal_weight") |> +emission_rank_avg_equal_weight_per_benchmark <- emission_rank_avg_per_benchmark(transition_risk_company_example, "emission_rank_avg_equal_weight") |> rename("average_emission_rank_avg_equal_weight" = "average", "median_emission_rank_avg_equal_weight" = "rank_median", "25th_quantile_emission_rank_avg_equal_weight" = "rank_25th", @@ -831,7 +831,7 @@

Descr benchmark

-emission_rank_avg_best_case_per_benchmark <- emission_rank_avg_per_benchmark(transition_risk_product_example, "emission_rank_avg_best_case") |>
+emission_rank_avg_best_case_per_benchmark <- emission_rank_avg_per_benchmark(transition_risk_company_example, "emission_rank_avg_best_case") |>
   rename("average_emission_rank_avg_best_case" = "average",
          "median_emission_rank_avg_best_case" = "rank_median",
          "25th_quantile_emission_rank_avg_best_case" = "rank_25th",
@@ -876,7 +876,7 @@ 

Desc per benchmark

-emission_rank_avg_worst_case_per_benchmark <- emission_rank_avg_per_benchmark(transition_risk_product_example, "emission_rank_avg_worst_case") |>
+emission_rank_avg_worst_case_per_benchmark <- emission_rank_avg_per_benchmark(transition_risk_company_example, "emission_rank_avg_worst_case") |>
   rename("average_emission_rank_avg_worst_case" = "average",
          "median_emission_rank_avg_worst_case" = "rank_median",
          "25th_quantile_emission_rank_avg_worst_case" = "rank_25th",
@@ -935,7 +935,7 @@ 

select(-all_of(c("sum_mode", col, "companies_id", "distinct_comp"))) |> distinct() } -emission_rank_avg_equal_weight_per_benchmark_country <- emission_rank_avg_per_benchmark_country(transition_risk_product_example, "emission_rank_avg_equal_weight", "france") |> +emission_rank_avg_equal_weight_per_benchmark_country <- emission_rank_avg_per_benchmark_country(transition_risk_company_example, "emission_rank_avg_equal_weight", "france") |> rename("average_emission_rank_avg_equal_weight" = "average", "median_emission_rank_avg_equal_weight" = "rank_median", "25th_quantile_emission_rank_avg_equal_weight" = "rank_25th", @@ -984,7 +984,7 @@

-emission_rank_avg_best_case_per_benchmark_country <- emission_rank_avg_per_benchmark_country(transition_risk_product_example, "emission_rank_avg_best_case", "france") |>
+emission_rank_avg_best_case_per_benchmark_country <- emission_rank_avg_per_benchmark_country(transition_risk_company_example, "emission_rank_avg_best_case", "france") |>
   rename("average_emission_rank_avg_best_case" = "average",
          "median_emission_rank_avg_best_case" = "rank_median",
          "25th_quantile_emission_rank_avg_best_case" = "rank_25th",
@@ -1033,7 +1033,7 @@ 

-emission_rank_avg_worst_case_per_benchmark_country <- emission_rank_avg_per_benchmark_country(transition_risk_product_example, "emission_rank_avg_worst_case", "france") |>
+emission_rank_avg_worst_case_per_benchmark_country <- emission_rank_avg_per_benchmark_country(transition_risk_company_example, "emission_rank_avg_worst_case", "france") |>
   rename("average_emission_rank_avg_worst_case" = "average",
          "median_emission_rank_avg_worst_case" = "rank_median",
          "25th_quantile_emission_rank_avg_worst_case" = "rank_25th",
diff --git a/articles/descriptive-analysis-best_case_worst_case_transition_risk_profile.html b/articles/descriptive-analysis-best_case_worst_case_transition_risk_profile.html
index 0ba1d6a..d24c29e 100644
--- a/articles/descriptive-analysis-best_case_worst_case_transition_risk_profile.html
+++ b/articles/descriptive-analysis-best_case_worst_case_transition_risk_profile.html
@@ -61,7 +61,7 @@
 
 
 
-
+
 
-
-------- - - - - - - - +kable(transition_risk_product_example) |> + kable_styling(full_width = TRUE, bootstrap_options = "striped") |> + scroll_box(width = "800px") +
+
grouping_transition_riskcountrytransition_risk_categorytransition_risk_profile_equal_weighttransition_risk_profile_best_casetransition_risk_profile_worst_case
+ + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+grouping_transition_risk + +country + +transition_risk_category + +transition_risk_profile_equal_weight + +transition_risk_profile_best_case + +transition_risk_profile_worst_case +
1.5C RPS_2030_allfrancehigh0.250.250.25
1.5C RPS_2030_allfrancehigh0.750.750.75
1.5C RPS_2030_allfrancemedium0.100.100.10
1.5C RPS_2030_allfrancelow0.150.150.15
1.5C RPS_2030_allfrancelow0.550.550.55
1.5C RPS_2030_allfranceNA0.300.300.30
NZ 2050_2030_unitfrancehigh0.450.450.45
NZ 2050_2030_unitfrancemedium0.600.600.60
NZ 2050_2030_unitfrancemedium0.400.400.40
NZ 2050_2030_unitfrancelow0.350.350.35
NZ 2050_2030_unitfrancelow0.750.750.75
NZ 2050_2030_unitaustriahigh0.350.350.35
1.5C RPS_2030_allaustriahigh0.250.250.25
1.5C RPS_2030_allaustriamedium0.100.100.10
1.5C RPS_2030_allaustriamedium0.600.600.60
1.5C RPS_2030_allaustrialow0.150.150.15
1.5C RPS_2030_allaustriaNA0.300.300.30
NZ 2050_2030_unitaustriahigh0.450.450.45
NZ 2050_2030_unitaustriamedium0.600.600.60
NZ 2050_2030_unitaustriamedium0.800.800.80
NZ 2050_2030_unitaustrialow0.350.350.35
NZ 2050_2030_unitaustrialow0.850.850.85
NZ 2050_2030_unitaustriaNA0.750.750.75
+1.5C RPS_2030_all + +france + +high + +0.25 + +0.25 + +0.25 +
+1.5C RPS_2030_all + +france + +high + +0.75 + +0.75 + +0.75 +
+1.5C RPS_2030_all + +france + +medium + +0.10 + +0.10 + +0.10 +
+1.5C RPS_2030_all + +france + +low + +0.15 + +0.15 + +0.15 +
+1.5C RPS_2030_all + +france + +low + +0.55 + +0.55 + +0.55 +
+1.5C RPS_2030_all + +france + +NA + +0.30 + +0.30 + +0.30 +
+NZ 2050_2030_unit + +france + +high + +0.45 + +0.45 + +0.45 +
+NZ 2050_2030_unit + +france + +medium + +0.60 + +0.60 + +0.60 +
+NZ 2050_2030_unit + +france + +medium + +0.40 + +0.40 + +0.40 +
+NZ 2050_2030_unit + +france + +low + +0.35 + +0.35 + +0.35 +
+NZ 2050_2030_unit + +france + +low + +0.75 + +0.75 + +0.75 +
+NZ 2050_2030_unit + +austria + +high + +0.35 + +0.35 + +0.35 +
+1.5C RPS_2030_all + +austria + +high + +0.25 + +0.25 + +0.25 +
+1.5C RPS_2030_all + +austria + +medium + +0.10 + +0.10 + +0.10 +
+1.5C RPS_2030_all + +austria + +medium + +0.60 + +0.60 + +0.60 +
+1.5C RPS_2030_all + +austria + +low + +0.15 + +0.15 + +0.15 +
+1.5C RPS_2030_all + +austria + +NA + +0.30 + +0.30 + +0.30 +
+NZ 2050_2030_unit + +austria + +high + +0.45 + +0.45 + +0.45 +
+NZ 2050_2030_unit + +austria + +medium + +0.60 + +0.60 + +0.60 +
+NZ 2050_2030_unit + +austria + +medium + +0.80 + +0.80 + +0.80 +
+NZ 2050_2030_unit + +austria + +low + +0.35 + +0.35 + +0.35 +
+NZ 2050_2030_unit + +austria + +low + +0.85 + +0.85 + +0.85 +
+NZ 2050_2030_unit + +austria + +NA + +0.75 + +0.75 + +0.75 +
+

Average transition_risk_profile_equal_weight per grouping_transition_risk and @@ -511,7 +795,7 @@

avg_transition_risk_equal_weight_per_benchmark_country_risk_category <- avg_per_benchmark_country_risk_category(transition_risk_product_example, "transition_risk_profile_equal_weight", "france") |> rename(avg_equal_weight = "proportion") -kable(avg_transition_risk_equal_weight_per_benchmark_country_risk_category)

+kable(avg_transition_risk_equal_weight_per_benchmark_country_risk_category) @@ -681,6 +965,690 @@

Bar plot

+ +
+

Example company-level output of transition risk profile for best +case and worst case +

+
+transition_risk_company_example <- example_transition_risk_company_transition_risk_avg_best_case_worst_case()
+kable(transition_risk_company_example) |>
+  kable_styling(full_width = TRUE, bootstrap_options = "striped") |>
+  scroll_box(width = "800px")
+
+

grouping_transition_risk
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+companies_id + +country + +grouping_transition_risk + +avg_transition_risk_equal_weight + +avg_transition_risk_best_case + +avg_transition_risk_worst_case +
+comp_1 + +france + +1.5C RPS_2030_all + +0.25 + +0.25 + +0.25 +
+comp_1 + +france + +NZ 2050_2030_unit + +0.85 + +0.85 + +0.85 +
+comp_2 + +france + +1.5C RPS_2030_all + +0.10 + +0.10 + +0.10 +
+comp_2 + +france + +NZ 2050_2030_unit + +0.30 + +0.30 + +0.30 +
+comp_3 + +austria + +1.5C RPS_2030_all + +0.35 + +0.35 + +0.35 +
+comp_3 + +austria + +NZ 2050_2030_unit + +0.55 + +0.55 + +0.55 +
+comp_4 + +austria + +1.5C RPS_2030_all + +0.70 + +0.70 + +0.70 +
+comp_4 + +austria + +NZ 2050_2030_unit + +0.20 + +0.20 + +0.20 +
+ + +
+

Descriptive analysis of +avg_transition_risk_equal_weight per +grouping_transition_risk +

+
+avg_transition_risk_per_benchmark <- function(data, col) {
+  data |>
+    select(all_of(c("companies_id", "grouping_transition_risk", col))) |>
+    distinct() |>
+    mutate(sum_mode = sum(.data[[col]], na.rm = TRUE), .by = "grouping_transition_risk") |>
+    mutate(distinct_comp = n_distinct(companies_id, na.rm = TRUE), .by = "grouping_transition_risk") |>
+    mutate(average = sum_mode / distinct_comp) |>
+    mutate(rank_median = median(.data[[col]], na.rm = TRUE), .by = "grouping_transition_risk") |>
+    mutate(rank_25th = quantile(.data[[col]], 0.25, na.rm = TRUE), .by = "grouping_transition_risk") |>
+    mutate(rank_75th = quantile(.data[[col]], 0.75, na.rm = TRUE), .by = "grouping_transition_risk") |>
+    select(-all_of(c("sum_mode", col, "companies_id", "distinct_comp"))) |>
+    distinct()
+}
+avg_transition_risk_equal_weight_per_benchmark <- avg_transition_risk_per_benchmark(transition_risk_company_example, "avg_transition_risk_equal_weight") |>
+  rename("average_avg_transition_risk_equal_weight" = "average",
+         "median_avg_transition_risk_equal_weight" = "rank_median",
+         "25th_quantile_avg_transition_risk_equal_weight" = "rank_25th",
+         "75th_quantile_avg_transition_risk_equal_weight" = "rank_75th")
+
+kable(avg_transition_risk_equal_weight_per_benchmark) |>
+  kable_styling(full_width = TRUE, bootstrap_options = "striped") |>
+  scroll_box(width = "800px")
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
+grouping_transition_risk + +average_avg_transition_risk_equal_weight + +median_avg_transition_risk_equal_weight + +25th_quantile_avg_transition_risk_equal_weight + +75th_quantile_avg_transition_risk_equal_weight +
+1.5C RPS_2030_all + +0.350 + +0.300 + +0.2125 + +0.4375 +
+NZ 2050_2030_unit + +0.475 + +0.425 + +0.2750 + +0.6250 +
+
+
+
+

Descriptive analysis of avg_transition_risk_best_case +per grouping_transition_risk +

+
+avg_transition_risk_best_case_per_benchmark <- avg_transition_risk_per_benchmark(transition_risk_company_example, "avg_transition_risk_best_case") |>
+  rename("average_avg_transition_risk_best_case" = "average",
+         "median_avg_transition_risk_best_case" = "rank_median",
+         "25th_quantile_avg_transition_risk_best_case" = "rank_25th",
+         "75th_quantile_avg_transition_risk_best_case" = "rank_75th")
+
+kable(avg_transition_risk_best_case_per_benchmark) |>
+  kable_styling(full_width = TRUE, bootstrap_options = "striped") |>
+  scroll_box(width = "800px")
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
+grouping_transition_risk + +average_avg_transition_risk_best_case + +median_avg_transition_risk_best_case + +25th_quantile_avg_transition_risk_best_case + +75th_quantile_avg_transition_risk_best_case +
+1.5C RPS_2030_all + +0.350 + +0.300 + +0.2125 + +0.4375 +
+NZ 2050_2030_unit + +0.475 + +0.425 + +0.2750 + +0.6250 +
+
+
+
+

Descriptive analysis of avg_transition_risk_worst_case +per grouping_transition_risk +

+
+avg_transition_risk_worst_case_per_benchmark <- avg_transition_risk_per_benchmark(transition_risk_company_example, "avg_transition_risk_worst_case") |>
+  rename("average_avg_transition_risk_worst_case" = "average",
+         "median_avg_transition_risk_worst_case" = "rank_median",
+         "25th_quantile_avg_transition_risk_worst_case" = "rank_25th",
+         "75th_quantile_avg_transition_risk_worst_case" = "rank_75th")
+
+kable(avg_transition_risk_worst_case_per_benchmark) |>
+  kable_styling(full_width = TRUE, bootstrap_options = "striped") |>
+  scroll_box(width = "800px")
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
+grouping_transition_risk + +average_avg_transition_risk_worst_case + +median_avg_transition_risk_worst_case + +25th_quantile_avg_transition_risk_worst_case + +75th_quantile_avg_transition_risk_worst_case +
+1.5C RPS_2030_all + +0.350 + +0.300 + +0.2125 + +0.4375 +
+NZ 2050_2030_unit + +0.475 + +0.425 + +0.2750 + +0.6250 +
+
+
+
+

Descriptive analysis of +avg_transition_risk_equal_weight per +grouping_transition_risk for a country +

+
+avg_transition_risk_per_benchmark_country <- function(data, col, country_value) {
+  data |>
+    select(all_of(c("companies_id", "grouping_transition_risk", "country", col))) |>
+    distinct() |>
+    filter(country == country_value) |>
+    mutate(sum_mode = sum(.data[[col]], na.rm = TRUE), .by = "grouping_transition_risk") |>
+    mutate(distinct_comp = n_distinct(companies_id, na.rm = TRUE), .by = "grouping_transition_risk") |>
+    mutate(average = sum_mode / distinct_comp) |>
+    mutate(rank_median = median(.data[[col]], na.rm = TRUE), .by = "grouping_transition_risk") |>
+    mutate(rank_25th = quantile(.data[[col]], 0.25, na.rm = TRUE), .by = "grouping_transition_risk") |>
+    mutate(rank_75th = quantile(.data[[col]], 0.75, na.rm = TRUE), .by = "grouping_transition_risk") |>
+    select(-all_of(c("sum_mode", col, "companies_id", "distinct_comp"))) |>
+    distinct()
+}
+avg_transition_risk_equal_weight_per_benchmark_country  <- avg_transition_risk_per_benchmark_country(transition_risk_company_example, "avg_transition_risk_equal_weight", "france") |>
+  rename("average_avg_transition_risk_equal_weight" = "average",
+         "median_avg_transition_risk_equal_weight" = "rank_median",
+         "25th_quantile_avg_transition_risk_equal_weight" = "rank_25th",
+         "75th_quantile_avg_transition_risk_equal_weight" = "rank_75th")
+
+kable(avg_transition_risk_equal_weight_per_benchmark_country) |>
+  kable_styling(full_width = TRUE, bootstrap_options = "striped") |>
+  scroll_box(width = "800px")
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+grouping_transition_risk + +country + +average_avg_transition_risk_equal_weight + +median_avg_transition_risk_equal_weight + +25th_quantile_avg_transition_risk_equal_weight + +75th_quantile_avg_transition_risk_equal_weight +
+1.5C RPS_2030_all + +france + +0.175 + +0.175 + +0.1375 + +0.2125 +
+NZ 2050_2030_unit + +france + +0.575 + +0.575 + +0.4375 + +0.7125 +
+
+
+
+

Descriptive analysis of avg_transition_risk_best_case +per grouping_transition_risk for a country +

+
+avg_transition_risk_best_case_per_benchmark_country  <- avg_transition_risk_per_benchmark_country(transition_risk_company_example, "avg_transition_risk_best_case", "france") |>
+  rename("average_avg_transition_risk_best_case" = "average",
+         "median_avg_transition_risk_best_case" = "rank_median",
+         "25th_quantile_avg_transition_risk_best_case" = "rank_25th",
+         "75th_quantile_avg_transition_risk_best_case" = "rank_75th")
+
+kable(avg_transition_risk_best_case_per_benchmark_country) |>
+  kable_styling(full_width = TRUE, bootstrap_options = "striped") |>
+  scroll_box(width = "800px")
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+grouping_transition_risk + +country + +average_avg_transition_risk_best_case + +median_avg_transition_risk_best_case + +25th_quantile_avg_transition_risk_best_case + +75th_quantile_avg_transition_risk_best_case +
+1.5C RPS_2030_all + +france + +0.175 + +0.175 + +0.1375 + +0.2125 +
+NZ 2050_2030_unit + +france + +0.575 + +0.575 + +0.4375 + +0.7125 +
+
+
+
+

Descriptive analysis of avg_transition_risk_worst_case +per grouping_transition_risk for a country +

+
+avg_transition_risk_worst_case_per_benchmark_country  <- avg_transition_risk_per_benchmark_country(transition_risk_company_example, "avg_transition_risk_worst_case", "france") |>
+  rename("average_avg_transition_risk_worst_case" = "average",
+         "median_avg_transition_risk_worst_case" = "rank_median",
+         "25th_quantile_avg_transition_risk_worst_case" = "rank_25th",
+         "75th_quantile_avg_transition_risk_worst_case" = "rank_75th")
+
+kable(avg_transition_risk_worst_case_per_benchmark_country) |>
+  kable_styling(full_width = TRUE, bootstrap_options = "striped") |>
+  scroll_box(width = "800px")
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+grouping_transition_risk + +country + +average_avg_transition_risk_worst_case + +median_avg_transition_risk_worst_case + +25th_quantile_avg_transition_risk_worst_case + +75th_quantile_avg_transition_risk_worst_case +
+1.5C RPS_2030_all + +france + +0.175 + +0.175 + +0.1375 + +0.2125 +
+NZ 2050_2030_unit + +france + +0.575 + +0.575 + +0.4375 + +0.7125 +
+
diff --git a/articles/descriptive-analysis-best_case_worst_case_transition_risk_profile_files/kePrint-0.0.1/kePrint.js b/articles/descriptive-analysis-best_case_worst_case_transition_risk_profile_files/kePrint-0.0.1/kePrint.js new file mode 100644 index 0000000..e6fbbfc --- /dev/null +++ b/articles/descriptive-analysis-best_case_worst_case_transition_risk_profile_files/kePrint-0.0.1/kePrint.js @@ -0,0 +1,8 @@ +$(document).ready(function(){ + if (typeof $('[data-toggle="tooltip"]').tooltip === 'function') { + $('[data-toggle="tooltip"]').tooltip(); + } + if ($('[data-toggle="popover"]').popover === 'function') { + $('[data-toggle="popover"]').popover(); + } +}); diff --git a/articles/descriptive-analysis-best_case_worst_case_transition_risk_profile_files/lightable-0.0.1/lightable.css b/articles/descriptive-analysis-best_case_worst_case_transition_risk_profile_files/lightable-0.0.1/lightable.css new file mode 100644 index 0000000..3be3be9 --- /dev/null +++ b/articles/descriptive-analysis-best_case_worst_case_transition_risk_profile_files/lightable-0.0.1/lightable.css @@ -0,0 +1,272 @@ +/*! + * lightable v0.0.1 + * Copyright 2020 Hao Zhu + * Licensed under MIT (https://github.com/haozhu233/kableExtra/blob/master/LICENSE) + */ + +.lightable-minimal { + border-collapse: separate; + border-spacing: 16px 1px; + width: 100%; + margin-bottom: 10px; +} + +.lightable-minimal td { + margin-left: 5px; + margin-right: 5px; +} + +.lightable-minimal th { + margin-left: 5px; + margin-right: 5px; +} + +.lightable-minimal thead tr:last-child th { + border-bottom: 2px solid #00000050; + empty-cells: hide; + +} + +.lightable-minimal tbody tr:first-child td { + padding-top: 0.5em; +} + +.lightable-minimal.lightable-hover tbody tr:hover { + background-color: #f5f5f5; +} + +.lightable-minimal.lightable-striped tbody tr:nth-child(even) { + background-color: #f5f5f5; +} + +.lightable-classic { + border-top: 0.16em solid #111111; + border-bottom: 0.16em solid #111111; + width: 100%; + margin-bottom: 10px; + margin: 10px 5px; +} + +.lightable-classic tfoot tr td { + border: 0; +} + +.lightable-classic tfoot tr:first-child td { + border-top: 0.14em solid #111111; +} + +.lightable-classic caption { + color: #222222; +} + +.lightable-classic td { + padding-left: 5px; + padding-right: 5px; + color: #222222; +} + +.lightable-classic th { + padding-left: 5px; + padding-right: 5px; + font-weight: normal; + color: #222222; +} + +.lightable-classic thead tr:last-child th { + border-bottom: 0.10em solid #111111; +} + +.lightable-classic.lightable-hover tbody tr:hover { + background-color: #F9EEC1; +} + +.lightable-classic.lightable-striped tbody tr:nth-child(even) { + background-color: #f5f5f5; +} + +.lightable-classic-2 { + border-top: 3px double #111111; + border-bottom: 3px double #111111; + width: 100%; + margin-bottom: 10px; +} + +.lightable-classic-2 tfoot tr td { + border: 0; +} + +.lightable-classic-2 tfoot tr:first-child td { + border-top: 3px double #111111; +} + +.lightable-classic-2 caption { + color: #222222; +} + +.lightable-classic-2 td { + padding-left: 5px; + padding-right: 5px; + color: #222222; +} + +.lightable-classic-2 th { + padding-left: 5px; + padding-right: 5px; + font-weight: normal; + color: #222222; +} + +.lightable-classic-2 tbody tr:last-child td { + border-bottom: 3px double #111111; +} + +.lightable-classic-2 thead tr:last-child th { + border-bottom: 1px solid #111111; +} + +.lightable-classic-2.lightable-hover tbody tr:hover { + background-color: #F9EEC1; +} + +.lightable-classic-2.lightable-striped tbody tr:nth-child(even) { + background-color: #f5f5f5; +} + +.lightable-material { + min-width: 100%; + white-space: nowrap; + table-layout: fixed; + font-family: Roboto, sans-serif; + border: 1px solid #EEE; + border-collapse: collapse; + margin-bottom: 10px; +} + +.lightable-material tfoot tr td { + border: 0; +} + +.lightable-material tfoot tr:first-child td { + border-top: 1px solid #EEE; +} + +.lightable-material th { + height: 56px; + padding-left: 16px; + padding-right: 16px; +} + +.lightable-material td { + height: 52px; + padding-left: 16px; + padding-right: 16px; + border-top: 1px solid #eeeeee; +} + +.lightable-material.lightable-hover tbody tr:hover { + background-color: #f5f5f5; +} + +.lightable-material.lightable-striped tbody tr:nth-child(even) { + background-color: #f5f5f5; +} + +.lightable-material.lightable-striped tbody td { + border: 0; +} + +.lightable-material.lightable-striped thead tr:last-child th { + border-bottom: 1px solid #ddd; +} + +.lightable-material-dark { + min-width: 100%; + white-space: nowrap; + table-layout: fixed; + font-family: Roboto, sans-serif; + border: 1px solid #FFFFFF12; + border-collapse: collapse; + margin-bottom: 10px; + background-color: #363640; +} + +.lightable-material-dark tfoot tr td { + border: 0; +} + +.lightable-material-dark tfoot tr:first-child td { + border-top: 1px solid #FFFFFF12; +} + +.lightable-material-dark th { + height: 56px; + padding-left: 16px; + padding-right: 16px; + color: #FFFFFF60; +} + +.lightable-material-dark td { + height: 52px; + padding-left: 16px; + padding-right: 16px; + color: #FFFFFF; + border-top: 1px solid #FFFFFF12; +} + +.lightable-material-dark.lightable-hover tbody tr:hover { + background-color: #FFFFFF12; +} + +.lightable-material-dark.lightable-striped tbody tr:nth-child(even) { + background-color: #FFFFFF12; +} + +.lightable-material-dark.lightable-striped tbody td { + border: 0; +} + +.lightable-material-dark.lightable-striped thead tr:last-child th { + border-bottom: 1px solid #FFFFFF12; +} + +.lightable-paper { + width: 100%; + margin-bottom: 10px; + color: #444; +} + +.lightable-paper tfoot tr td { + border: 0; +} + +.lightable-paper tfoot tr:first-child td { + border-top: 1px solid #00000020; +} + +.lightable-paper thead tr:last-child th { + color: #666; + vertical-align: bottom; + border-bottom: 1px solid #00000020; + line-height: 1.15em; + padding: 10px 5px; +} + +.lightable-paper td { + vertical-align: middle; + border-bottom: 1px solid #00000010; + line-height: 1.15em; + padding: 7px 5px; +} + +.lightable-paper.lightable-hover tbody tr:hover { + background-color: #F9EEC1; +} + +.lightable-paper.lightable-striped tbody tr:nth-child(even) { + background-color: #00000008; +} + +.lightable-paper.lightable-striped tbody td { + border: 0; +} + diff --git a/pkgdown.yml b/pkgdown.yml index d4ff4df..1c8e6b5 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -12,7 +12,7 @@ articles: articles/descriptive-analysis-products: descriptive-analysis-products.html articles/descriptive-analysis-transition_risk_score_per_scenario_year_tilt_subsector: descriptive-analysis-transition_risk_score_per_scenario_year_tilt_subsector.html articles/show-reduction_targets_for_tilt_subsectors_per_scenario_year: show-reduction_targets_for_tilt_subsectors_per_scenario_year.html -last_built: 2024-08-14T19:48Z +last_built: 2024-08-15T10:29Z urls: reference: https://2degreesinvesting.github.io/tiltDataAnalysis/reference article: https://2degreesinvesting.github.io/tiltDataAnalysis/articles diff --git a/reference/example_emission_product_co2_des_analysis.html b/reference/example_emission_product_co2_des_analysis.html index 94619b2..53460c4 100644 --- a/reference/example_emission_product_co2_des_analysis.html +++ b/reference/example_emission_product_co2_des_analysis.html @@ -75,7 +75,9 @@

Usage example_transition_risk_company_sector_avg_best_case_worst_case() -example_transition_risk_product_best_case_worst_case() +example_transition_risk_product_best_case_worst_case() + +example_transition_risk_company_transition_risk_avg_best_case_worst_case()
@@ -245,6 +247,20 @@

Examples#> # ³​transition_risk_profile_equal_weight #> # ℹ 2 more variables: transition_risk_profile_best_case <dbl>, #> # transition_risk_profile_worst_case <dbl> +example_transition_risk_company_transition_risk_avg_best_case_worst_case() +#> # A tibble: 8 × 6 +#> companies_id country grouping_transition_risk avg_transition_risk_equal_weight +#> <chr> <chr> <chr> <dbl> +#> 1 comp_1 france 1.5C RPS_2030_all 0.25 +#> 2 comp_1 france NZ 2050_2030_unit 0.85 +#> 3 comp_2 france 1.5C RPS_2030_all 0.1 +#> 4 comp_2 france NZ 2050_2030_unit 0.3 +#> 5 comp_3 austria 1.5C RPS_2030_all 0.35 +#> 6 comp_3 austria NZ 2050_2030_unit 0.55 +#> 7 comp_4 austria 1.5C RPS_2030_all 0.7 +#> 8 comp_4 austria NZ 2050_2030_unit 0.2 +#> # ℹ 2 more variables: avg_transition_risk_best_case <dbl>, +#> # avg_transition_risk_worst_case <dbl>