Skip to content
Snippets Groups Projects
Commit 1d9a4140 authored by Ben Anderson's avatar Ben Anderson
Browse files

Merge branch 'master' into 'master'

updating

See merge request SERG/fridayFagPackets!12
parents 84cb08b6 6684f629
No related branches found
No related tags found
No related merge requests found
Showing
with 752 additions and 21 deletions
# fridayFagPackets # fridayFagPackets
A repo for our fridayFagPacket data notes (numbers that could have been done on the back of one and should probably come with a similar health warning). A repo for our [fridayFagPacket](https://energy.soton.ac.uk/friday-fag-packets/) data notes (numbers that could have been done on the back of one and should probably come with a similar health warning).
* docs - where we (usually) keep outputs - these are published on [energy.soton](https://energy.soton.ac.uk/friday-fag-packets/) * docs - where we (usually) keep outputs - these are published on [energy.soton](https://energy.soton.ac.uk/friday-fag-packets/)
* data - where we keep (public) data we used * data - where we keep (public) data we used
......
# fridayFagPacket # fridayFagPackets
A repo for our fridayFagPacket data notes (numbers that could have been done on the back of one and should probably come with a similar health warning) A repo for our [fridayFagPacket](https://energy.soton.ac.uk/friday-fag-packets/) data notes (numbers that could have been done on the back of one and should probably come with a similar health warning)
* 2022-10-06 - [GDP & emissions - degrowthing or decoupling?](UK_GDP_emissions.html)
* 2020-10-16 - [retrofit or bust](retrofitOrBust.html) * 2020-10-16 - [retrofit or bust](retrofitOrBust.html)
* 2018-06-15 - [UK household power demand and #worldcup2018](https://energy.soton.ac.uk/uk-household-power-demand-and-worldcup2018/) * 2018-06-15 - [UK household power demand and #worldcup2018](https://energy.soton.ac.uk/uk-household-power-demand-and-worldcup2018/)
* 2018-05-30 - [Super Saturday and spikes in demand](https://energy.soton.ac.uk/super-saturday-and-spikes-in-demand/) * 2018-05-30 - [Super Saturday and spikes in demand](https://energy.soton.ac.uk/super-saturday-and-spikes-in-demand/)
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<meta name="author" content="Ben Anderson &amp; Tom Rushby"> <meta name="author" content="Ben Anderson &amp; Tom Rushby">
<meta name="dcterms.date" content="2022-10-06"> <meta name="dcterms.date" content="2022-10-06">
<title>GDP &amp; emissions</title> <title>GDP &amp; emissions - degrowthing or decoupling?</title>
<style> <style>
code{white-space: pre-wrap;} code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;} span.smallcaps{font-variant: small-caps;}
...@@ -83,16 +83,16 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni ...@@ -83,16 +83,16 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
</style> </style>
<script src="UK_initialPlots_files/libs/clipboard/clipboard.min.js"></script> <script src="UK_GDP_emissions_files/libs/clipboard/clipboard.min.js"></script>
<script src="UK_initialPlots_files/libs/quarto-html/quarto.js"></script> <script src="UK_GDP_emissions_files/libs/quarto-html/quarto.js"></script>
<script src="UK_initialPlots_files/libs/quarto-html/popper.min.js"></script> <script src="UK_GDP_emissions_files/libs/quarto-html/popper.min.js"></script>
<script src="UK_initialPlots_files/libs/quarto-html/tippy.umd.min.js"></script> <script src="UK_GDP_emissions_files/libs/quarto-html/tippy.umd.min.js"></script>
<script src="UK_initialPlots_files/libs/quarto-html/anchor.min.js"></script> <script src="UK_GDP_emissions_files/libs/quarto-html/anchor.min.js"></script>
<link href="UK_initialPlots_files/libs/quarto-html/tippy.css" rel="stylesheet"> <link href="UK_GDP_emissions_files/libs/quarto-html/tippy.css" rel="stylesheet">
<link href="UK_initialPlots_files/libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles"> <link href="UK_GDP_emissions_files/libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<script src="UK_initialPlots_files/libs/bootstrap/bootstrap.min.js"></script> <script src="UK_GDP_emissions_files/libs/bootstrap/bootstrap.min.js"></script>
<link href="UK_initialPlots_files/libs/bootstrap/bootstrap-icons.css" rel="stylesheet"> <link href="UK_GDP_emissions_files/libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
<link href="UK_initialPlots_files/libs/bootstrap/bootstrap.min.css" rel="stylesheet"> <link href="UK_GDP_emissions_files/libs/bootstrap/bootstrap.min.css" rel="stylesheet">
</head> </head>
...@@ -117,7 +117,7 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni ...@@ -117,7 +117,7 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
<header id="title-block-header" class="quarto-title-block default"> <header id="title-block-header" class="quarto-title-block default">
<div class="quarto-title"> <div class="quarto-title">
<h1 class="title">GDP &amp; emissions</h1> <h1 class="title">GDP &amp; emissions - degrowthing or decoupling?</h1>
</div> </div>
...@@ -179,7 +179,7 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni ...@@ -179,7 +179,7 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
<div class="cell-output-display"> <div class="cell-output-display">
<div id="fig-ukPlotProd" class="quarto-figure quarto-figure-center anchored"> <div id="fig-ukPlotProd" class="quarto-figure quarto-figure-center anchored">
<figure class="figure"> <figure class="figure">
<p><img src="UK_initialPlots_files/figure-html/fig-ukPlotProd-1.png" class="img-fluid figure-img" width="672"></p> <p><img src="UK_GDP_emissions_files/figure-html/fig-ukPlotProd-1.png" class="img-fluid figure-img" width="672"></p>
<p></p><figcaption aria-hidden="true" class="figure-caption">Figure 1: UK GDP vs production emissions over time.</figcaption><p></p> <p></p><figcaption aria-hidden="true" class="figure-caption">Figure 1: UK GDP vs production emissions over time.</figcaption><p></p>
</figure> </figure>
</div> </div>
...@@ -202,7 +202,7 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni ...@@ -202,7 +202,7 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
<div class="cell-output-display"> <div class="cell-output-display">
<div id="fig-ukPlotCons" class="quarto-figure quarto-figure-center anchored"> <div id="fig-ukPlotCons" class="quarto-figure quarto-figure-center anchored">
<figure class="figure"> <figure class="figure">
<p><img src="UK_initialPlots_files/figure-html/fig-ukPlotCons-1.png" class="img-fluid figure-img" width="672"></p> <p><img src="UK_GDP_emissions_files/figure-html/fig-ukPlotCons-1.png" class="img-fluid figure-img" width="672"></p>
<p></p><figcaption aria-hidden="true" class="figure-caption">Figure 2: UK GDP vs consumption emissions over time.</figcaption><p></p> <p></p><figcaption aria-hidden="true" class="figure-caption">Figure 2: UK GDP vs consumption emissions over time.</figcaption><p></p>
</figure> </figure>
</div> </div>
...@@ -228,7 +228,7 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni ...@@ -228,7 +228,7 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
<div class="cell-output-display"> <div class="cell-output-display">
<div id="fig-ukPlotProdPcc" class="quarto-figure quarto-figure-center anchored"> <div id="fig-ukPlotProdPcc" class="quarto-figure quarto-figure-center anchored">
<figure class="figure"> <figure class="figure">
<p><img src="UK_initialPlots_files/figure-html/fig-ukPlotProdPcc-1.png" class="img-fluid figure-img" width="672"></p> <p><img src="UK_GDP_emissions_files/figure-html/fig-ukPlotProdPcc-1.png" class="img-fluid figure-img" width="672"></p>
<p></p><figcaption aria-hidden="true" class="figure-caption">Figure 3: UK GDP vs production emissions over time.</figcaption><p></p> <p></p><figcaption aria-hidden="true" class="figure-caption">Figure 3: UK GDP vs production emissions over time.</figcaption><p></p>
</figure> </figure>
</div> </div>
...@@ -251,7 +251,7 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni ...@@ -251,7 +251,7 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
<div class="cell-output-display"> <div class="cell-output-display">
<div id="fig-ukPlotConsPcc" class="quarto-figure quarto-figure-center anchored"> <div id="fig-ukPlotConsPcc" class="quarto-figure quarto-figure-center anchored">
<figure class="figure"> <figure class="figure">
<p><img src="UK_initialPlots_files/figure-html/fig-ukPlotConsPcc-1.png" class="img-fluid figure-img" width="672"></p> <p><img src="UK_GDP_emissions_files/figure-html/fig-ukPlotConsPcc-1.png" class="img-fluid figure-img" width="672"></p>
<p></p><figcaption aria-hidden="true" class="figure-caption">Figure 4: UK GDP vs consumption emissions over time.</figcaption><p></p> <p></p><figcaption aria-hidden="true" class="figure-caption">Figure 4: UK GDP vs consumption emissions over time.</figcaption><p></p>
</figure> </figure>
</div> </div>
......
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
<meta charset="utf-8">
<meta name="generator" content="quarto-0.9.583">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<meta name="author" content="Ben Anderson &amp; Tom Rushby">
<meta name="dcterms.date" content="2022-10-06">
<title>GDP &amp; emissions - degrowthing or decoupling?</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
.sourceCode { overflow: visible; }
code.sourceCode > span { color: inherit; text-decoration: inherit; }
div.sourceCode { margin: 1em 0; }
pre.sourceCode { margin: 0; }
@media screen {
div.sourceCode { overflow: auto; }
}
@media print {
pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
}
pre.numberSource code
{ counter-reset: source-line 0; }
pre.numberSource code > span
{ position: relative; left: -4em; counter-increment: source-line; }
pre.numberSource code > span > a:first-child::before
{ content: counter(source-line);
position: relative; left: -1em; text-align: right; vertical-align: baseline;
border: none; display: inline-block;
-webkit-touch-callout: none; -webkit-user-select: none;
-khtml-user-select: none; -moz-user-select: none;
-ms-user-select: none; user-select: none;
padding: 0 4px; width: 4em;
color: #aaaaaa;
}
pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; }
div.sourceCode
{ }
@media screen {
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
}
code span.al { color: #ff0000; font-weight: bold; } /* Alert */
code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
code span.at { color: #7d9029; } /* Attribute */
code span.bn { color: #40a070; } /* BaseN */
code span.bu { } /* BuiltIn */
code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
code span.ch { color: #4070a0; } /* Char */
code span.cn { color: #880000; } /* Constant */
code span.co { color: #60a0b0; font-style: italic; } /* Comment */
code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
code span.do { color: #ba2121; font-style: italic; } /* Documentation */
code span.dt { color: #902000; } /* DataType */
code span.dv { color: #40a070; } /* DecVal */
code span.er { color: #ff0000; font-weight: bold; } /* Error */
code span.ex { } /* Extension */
code span.fl { color: #40a070; } /* Float */
code span.fu { color: #06287e; } /* Function */
code span.im { } /* Import */
code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
code span.kw { color: #007020; font-weight: bold; } /* Keyword */
code span.op { color: #666666; } /* Operator */
code span.ot { color: #007020; } /* Other */
code span.pp { color: #bc7a00; } /* Preprocessor */
code span.sc { color: #4070a0; } /* SpecialChar */
code span.ss { color: #bb6688; } /* SpecialString */
code span.st { color: #4070a0; } /* String */
code span.va { color: #19177c; } /* Variable */
code span.vs { color: #4070a0; } /* VerbatimString */
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
</style>
<script src="UK_GDP_emissions_files/libs/clipboard/clipboard.min.js"></script>
<script src="UK_GDP_emissions_files/libs/quarto-html/quarto.js"></script>
<script src="UK_GDP_emissions_files/libs/quarto-html/popper.min.js"></script>
<script src="UK_GDP_emissions_files/libs/quarto-html/tippy.umd.min.js"></script>
<script src="UK_GDP_emissions_files/libs/quarto-html/anchor.min.js"></script>
<link href="UK_GDP_emissions_files/libs/quarto-html/tippy.css" rel="stylesheet">
<link href="UK_GDP_emissions_files/libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<script src="UK_GDP_emissions_files/libs/bootstrap/bootstrap.min.js"></script>
<link href="UK_GDP_emissions_files/libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
<link href="UK_GDP_emissions_files/libs/bootstrap/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div id="quarto-content" class="page-columns page-rows-contents page-layout-article">
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
<nav id="TOC" role="doc-toc">
<h2 id="toc-title">Table of contents</h2>
<ul>
<li><a href="#whats-all-this-about-de-growth" id="toc-whats-all-this-about-de-growth" class="nav-link active" data-scroll-target="#whats-all-this-about-de-growth">What’s all this about de-growth?</a></li>
<li><a href="#data" id="toc-data" class="nav-link" data-scroll-target="#data">Data</a></li>
<li><a href="#uk-absolute-gdp-emissions" id="toc-uk-absolute-gdp-emissions" class="nav-link" data-scroll-target="#uk-absolute-gdp-emissions">UK: absolute GDP &amp; emissions</a></li>
<li><a href="#uk-per-capita-gdp-emissions" id="toc-uk-per-capita-gdp-emissions" class="nav-link" data-scroll-target="#uk-per-capita-gdp-emissions">UK: per capita GDP &amp; emissions</a></li>
<li><a href="#data-descriptions" id="toc-data-descriptions" class="nav-link" data-scroll-target="#data-descriptions">Data descriptions</a></li>
</ul>
</nav>
</div>
<main class="content" id="quarto-document-content">
<header id="title-block-header" class="quarto-title-block default">
<div class="quarto-title">
<h1 class="title">GDP &amp; emissions - degrowthing or decoupling?</h1>
</div>
<div class="quarto-title-meta">
<div>
<div class="quarto-title-meta-heading">Author</div>
<div class="quarto-title-meta-contents">
<p>Ben Anderson &amp; Tom Rushby </p>
</div>
</div>
<div>
<div class="quarto-title-meta-heading">Published</div>
<div class="quarto-title-meta-contents">
<p class="date">October 6, 2022</p>
</div>
</div>
</div>
</header>
<div class="cell">
</div>
<section id="whats-all-this-about-de-growth" class="level1">
<h1>What’s all this about de-growth?</h1>
<p>&lt;sigh&gt;</p>
</section>
<section id="data" class="level1">
<h1>Data</h1>
<p>Downloaded from the awesome <a href="https://ourworldindata.org/grapher/co2-emissions-and-gdp?country=~GBR">OurWorldInData</a>.</p>
<div class="cell">
<details>
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb1"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a>dt_abs <span class="ot">&lt;-</span> data.table<span class="sc">::</span><span class="fu">fread</span>(here<span class="sc">::</span><span class="fu">here</span>(<span class="st">"data"</span>, <span class="st">"co2-emissions-and-gdp.csv"</span>))</span>
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a>dt_pc <span class="ot">&lt;-</span> data.table<span class="sc">::</span><span class="fu">fread</span>(here<span class="sc">::</span><span class="fu">here</span>(<span class="st">"data"</span>, <span class="st">"co2-emissions-and-gdp-per-capita.csv"</span>))</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
</div>
</section>
<section id="uk-absolute-gdp-emissions" class="level1">
<h1>UK: absolute GDP &amp; emissions</h1>
<p>First we’ll try production emissions @fig-ukPlotProd.</p>
<div class="cell">
<details>
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb2"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>plotDT <span class="ot">&lt;-</span> dt_abs[Entity <span class="sc">==</span> <span class="st">"United Kingdom"</span>]</span>
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a>ggplot2<span class="sc">::</span><span class="fu">ggplot</span>(plotDT, <span class="fu">aes</span>(<span class="at">y =</span> <span class="fu">as.numeric</span>(<span class="st">`</span><span class="at">GDP, PPP (constant 2017 international $)</span><span class="st">`</span>)<span class="sc">/</span><span class="dv">1000000000</span>, </span>
<span id="cb2-4"><a href="#cb2-4" aria-hidden="true" tabindex="-1"></a> <span class="at">x =</span> <span class="fu">as.numeric</span>(<span class="st">`</span><span class="at">Annual CO2 emissions</span><span class="st">`</span>)<span class="sc">/</span><span class="dv">1000000</span>,</span>
<span id="cb2-5"><a href="#cb2-5" aria-hidden="true" tabindex="-1"></a> <span class="at">alpha =</span> Year)) <span class="sc">+</span></span>
<span id="cb2-6"><a href="#cb2-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">geom_point</span>() <span class="sc">+</span></span>
<span id="cb2-7"><a href="#cb2-7" aria-hidden="true" tabindex="-1"></a> <span class="fu">labs</span>(<span class="at">x =</span> <span class="st">"Annual CO2 emissions (production-based, gT)"</span>,</span>
<span id="cb2-8"><a href="#cb2-8" aria-hidden="true" tabindex="-1"></a> <span class="at">y =</span> <span class="st">"GDP $bn"</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
<div class="cell-output-display">
<div id="fig-ukPlotProd" class="quarto-figure quarto-figure-center anchored">
<figure class="figure">
<p><img src="UK_GDP_emissions_files/figure-html/fig-ukPlotProd-1.png" class="img-fluid figure-img" width="672"></p>
<p></p><figcaption aria-hidden="true" class="figure-caption">Figure 1: UK GDP vs production emissions over time.</figcaption><p></p>
</figure>
</div>
</div>
</div>
<p>Next we’ll try consumption emissions @fig-ukPlotCons.</p>
<p>Note that 2020 consumption-based emissions data is missing so you don’t see the downtick</p>
<div class="cell">
<details>
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb3"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a>plotDT <span class="ot">&lt;-</span> dt_abs[Entity <span class="sc">==</span> <span class="st">"United Kingdom"</span>]</span>
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a>ggplot2<span class="sc">::</span><span class="fu">ggplot</span>(plotDT, <span class="fu">aes</span>(<span class="at">y =</span> <span class="fu">as.numeric</span>(<span class="st">`</span><span class="at">GDP, PPP (constant 2017 international $)</span><span class="st">`</span>)<span class="sc">/</span><span class="dv">1000000000</span>, </span>
<span id="cb3-4"><a href="#cb3-4" aria-hidden="true" tabindex="-1"></a> <span class="at">x =</span> <span class="fu">as.numeric</span>(<span class="st">`</span><span class="at">Annual consumption-based CO2 emissions</span><span class="st">`</span>)<span class="sc">/</span><span class="dv">1000000</span>,</span>
<span id="cb3-5"><a href="#cb3-5" aria-hidden="true" tabindex="-1"></a> <span class="at">alpha =</span> Year)) <span class="sc">+</span></span>
<span id="cb3-6"><a href="#cb3-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">geom_point</span>() <span class="sc">+</span></span>
<span id="cb3-7"><a href="#cb3-7" aria-hidden="true" tabindex="-1"></a> <span class="fu">labs</span>(<span class="at">x =</span> <span class="st">"Annual CO2 emissions (consumption-based, gT)"</span>,</span>
<span id="cb3-8"><a href="#cb3-8" aria-hidden="true" tabindex="-1"></a> <span class="at">y =</span> <span class="st">"GDP $bn"</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
<div class="cell-output-display">
<div id="fig-ukPlotCons" class="quarto-figure quarto-figure-center anchored">
<figure class="figure">
<p><img src="UK_GDP_emissions_files/figure-html/fig-ukPlotCons-1.png" class="img-fluid figure-img" width="672"></p>
<p></p><figcaption aria-hidden="true" class="figure-caption">Figure 2: UK GDP vs consumption emissions over time.</figcaption><p></p>
</figure>
</div>
</div>
</div>
</section>
<section id="uk-per-capita-gdp-emissions" class="level1">
<h1>UK: per capita GDP &amp; emissions</h1>
<p>Since we’ll be dividing everything pairwise by the same denominator, nothing much should change…</p>
<p>First we’ll try production emissions @fig-ukPlotProdPcc.</p>
<div class="cell">
<details>
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb4"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a>plotDT <span class="ot">&lt;-</span> dt_pc[Entity <span class="sc">==</span> <span class="st">"United Kingdom"</span>]</span>
<span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb4-3"><a href="#cb4-3" aria-hidden="true" tabindex="-1"></a>ggplot2<span class="sc">::</span><span class="fu">ggplot</span>(plotDT, <span class="fu">aes</span>(<span class="at">y =</span> <span class="fu">as.numeric</span>(<span class="st">`</span><span class="at">GDP per capita, PPP (constant 2017 international $)</span><span class="st">`</span>), </span>
<span id="cb4-4"><a href="#cb4-4" aria-hidden="true" tabindex="-1"></a> <span class="at">x =</span> <span class="fu">as.numeric</span>(<span class="st">`</span><span class="at">Annual CO2 emissions (per capita)</span><span class="st">`</span>),</span>
<span id="cb4-5"><a href="#cb4-5" aria-hidden="true" tabindex="-1"></a> <span class="at">alpha =</span> Year)) <span class="sc">+</span></span>
<span id="cb4-6"><a href="#cb4-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">geom_point</span>() <span class="sc">+</span></span>
<span id="cb4-7"><a href="#cb4-7" aria-hidden="true" tabindex="-1"></a> <span class="fu">labs</span>(<span class="at">x =</span> <span class="st">"Annual CO2 emissions per capita (production-based, T)"</span>,</span>
<span id="cb4-8"><a href="#cb4-8" aria-hidden="true" tabindex="-1"></a> <span class="at">y =</span> <span class="st">"GDP per capita $"</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
<div class="cell-output-display">
<div id="fig-ukPlotProdPcc" class="quarto-figure quarto-figure-center anchored">
<figure class="figure">
<p><img src="UK_GDP_emissions_files/figure-html/fig-ukPlotProdPcc-1.png" class="img-fluid figure-img" width="672"></p>
<p></p><figcaption aria-hidden="true" class="figure-caption">Figure 3: UK GDP vs production emissions over time.</figcaption><p></p>
</figure>
</div>
</div>
</div>
<p>Next we’ll try consumption emissions @fig-ukPlotConsPcc.</p>
<p>Note that 2020 consumption-based emissions data is missing so you don’t see the downtick</p>
<div class="cell">
<details>
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb5"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a>plotDT <span class="ot">&lt;-</span> dt_pc[Entity <span class="sc">==</span> <span class="st">"United Kingdom"</span>]</span>
<span id="cb5-2"><a href="#cb5-2" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb5-3"><a href="#cb5-3" aria-hidden="true" tabindex="-1"></a>ggplot2<span class="sc">::</span><span class="fu">ggplot</span>(plotDT, <span class="fu">aes</span>(<span class="at">y =</span> <span class="fu">as.numeric</span>(<span class="st">`</span><span class="at">GDP per capita, PPP (constant 2017 international $)</span><span class="st">`</span>), </span>
<span id="cb5-4"><a href="#cb5-4" aria-hidden="true" tabindex="-1"></a> <span class="at">x =</span> <span class="fu">as.numeric</span>(<span class="st">`</span><span class="at">Annual consumption-based CO2 emissions (per capita)</span><span class="st">`</span>),</span>
<span id="cb5-5"><a href="#cb5-5" aria-hidden="true" tabindex="-1"></a> <span class="at">alpha =</span> Year)) <span class="sc">+</span></span>
<span id="cb5-6"><a href="#cb5-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">geom_point</span>() <span class="sc">+</span></span>
<span id="cb5-7"><a href="#cb5-7" aria-hidden="true" tabindex="-1"></a> <span class="fu">labs</span>(<span class="at">x =</span> <span class="st">"Annual CO2 emissions per capita (consumption-based, T)"</span>,</span>
<span id="cb5-8"><a href="#cb5-8" aria-hidden="true" tabindex="-1"></a> <span class="at">y =</span> <span class="st">"GDP per capita $"</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
<div class="cell-output-display">
<div id="fig-ukPlotConsPcc" class="quarto-figure quarto-figure-center anchored">
<figure class="figure">
<p><img src="UK_GDP_emissions_files/figure-html/fig-ukPlotConsPcc-1.png" class="img-fluid figure-img" width="672"></p>
<p></p><figcaption aria-hidden="true" class="figure-caption">Figure 4: UK GDP vs consumption emissions over time.</figcaption><p></p>
</figure>
</div>
</div>
</div>
</section>
<section id="data-descriptions" class="level1">
<h1>Data descriptions</h1>
<p>Check</p>
<p>Skim the absolute data:</p>
<div class="cell">
<details>
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb6"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a>skimr<span class="sc">::</span><span class="fu">skim</span>(dt_abs)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
<div class="cell-output cell-output-stderr">
<pre><code>Warning: Couldn't find skimmers for class: integer64; No user-defined `sfl`
provided. Falling back to `character`.
Warning: Couldn't find skimmers for class: integer64; No user-defined `sfl`
provided. Falling back to `character`.</code></pre>
</div>
<div class="cell-output-display">
<table class="table table-sm table-striped">
<caption>Data summary</caption>
<tbody>
<tr class="odd">
<td style="text-align: left;">Name</td>
<td style="text-align: left;">dt_abs</td>
</tr>
<tr class="even">
<td style="text-align: left;">Number of rows</td>
<td style="text-align: left;">7795</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Number of columns</td>
<td style="text-align: left;">6</td>
</tr>
<tr class="even">
<td style="text-align: left;">Key</td>
<td style="text-align: left;">NULL</td>
</tr>
<tr class="odd">
<td style="text-align: left;">_______________________</td>
<td style="text-align: left;"></td>
</tr>
<tr class="even">
<td style="text-align: left;">Column type frequency:</td>
<td style="text-align: left;"></td>
</tr>
<tr class="odd">
<td style="text-align: left;">character</td>
<td style="text-align: left;">4</td>
</tr>
<tr class="even">
<td style="text-align: left;">numeric</td>
<td style="text-align: left;">2</td>
</tr>
<tr class="odd">
<td style="text-align: left;">________________________</td>
<td style="text-align: left;"></td>
</tr>
<tr class="even">
<td style="text-align: left;">Group variables</td>
<td style="text-align: left;">None</td>
</tr>
</tbody>
</table>
<p><strong>Variable type: character</strong></p>
<table class="table table-sm table-striped">
<colgroup>
<col style="width: 41%">
<col style="width: 10%">
<col style="width: 14%">
<col style="width: 4%">
<col style="width: 4%">
<col style="width: 6%">
<col style="width: 9%">
<col style="width: 11%">
</colgroup>
<thead>
<tr class="header">
<th style="text-align: left;">skim_variable</th>
<th style="text-align: right;">n_missing</th>
<th style="text-align: right;">complete_rate</th>
<th style="text-align: right;">min</th>
<th style="text-align: right;">max</th>
<th style="text-align: right;">empty</th>
<th style="text-align: right;">n_unique</th>
<th style="text-align: right;">whitespace</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">Entity</td>
<td style="text-align: right;">0</td>
<td style="text-align: right;">1.00</td>
<td style="text-align: right;">4</td>
<td style="text-align: right;">32</td>
<td style="text-align: right;">0</td>
<td style="text-align: right;">255</td>
<td style="text-align: right;">0</td>
</tr>
<tr class="even">
<td style="text-align: left;">Code</td>
<td style="text-align: right;">0</td>
<td style="text-align: right;">1.00</td>
<td style="text-align: right;">0</td>
<td style="text-align: right;">8</td>
<td style="text-align: right;">931</td>
<td style="text-align: right;">225</td>
<td style="text-align: right;">0</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Annual CO2 emissions</td>
<td style="text-align: right;">479</td>
<td style="text-align: right;">0.94</td>
<td style="text-align: right;">1</td>
<td style="text-align: right;">21</td>
<td style="text-align: right;">0</td>
<td style="text-align: right;">6137</td>
<td style="text-align: right;">0</td>
</tr>
<tr class="even">
<td style="text-align: left;">GDP, PPP (constant 2017 international $)</td>
<td style="text-align: right;">1626</td>
<td style="text-align: right;">0.79</td>
<td style="text-align: right;">1</td>
<td style="text-align: right;">21</td>
<td style="text-align: right;">0</td>
<td style="text-align: right;">6162</td>
<td style="text-align: right;">0</td>
</tr>
</tbody>
</table>
<p><strong>Variable type: numeric</strong></p>
<table class="table table-sm table-striped">
<colgroup>
<col style="width: 27%">
<col style="width: 6%">
<col style="width: 9%">
<col style="width: 9%">
<col style="width: 9%">
<col style="width: 6%">
<col style="width: 6%">
<col style="width: 6%">
<col style="width: 6%">
<col style="width: 8%">
<col style="width: 4%">
</colgroup>
<thead>
<tr class="header">
<th style="text-align: left;">skim_variable</th>
<th style="text-align: right;">n_missing</th>
<th style="text-align: right;">complete_rate</th>
<th style="text-align: right;">mean</th>
<th style="text-align: right;">sd</th>
<th style="text-align: right;">p0</th>
<th style="text-align: right;">p25</th>
<th style="text-align: right;">p50</th>
<th style="text-align: right;">p75</th>
<th style="text-align: right;">p100</th>
<th style="text-align: left;">hist</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">Year</td>
<td style="text-align: right;">0</td>
<td style="text-align: right;">1.00</td>
<td style="text-align: right;">2005.06</td>
<td style="text-align: right;">8.930000e+00</td>
<td style="text-align: right;">1990.0</td>
<td style="text-align: right;">1997</td>
<td style="text-align: right;">2005</td>
<td style="text-align: right;">2013</td>
<td style="text-align: right;">2020</td>
<td style="text-align: left;">▇▇▇▇▇</td>
</tr>
<tr class="even">
<td style="text-align: left;">Annual consumption-based CO2 emissions</td>
<td style="text-align: right;">3730</td>
<td style="text-align: right;">0.52</td>
<td style="text-align: right;">976326173.39</td>
<td style="text-align: right;">3.366486e+09</td>
<td style="text-align: right;">197201.7</td>
<td style="text-align: right;">10759533</td>
<td style="text-align: right;">59975059</td>
<td style="text-align: right;">290854945</td>
<td style="text-align: right;">36702502921</td>
<td style="text-align: left;">▇▁▁▁▁</td>
</tr>
</tbody>
</table>
</div>
</div>
<p>Skim the per capita data</p>
<div class="cell">
<details>
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb8"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb8-1"><a href="#cb8-1" aria-hidden="true" tabindex="-1"></a>skimr<span class="sc">::</span><span class="fu">skim</span>(dt_pc)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
<div class="cell-output-display">
<table class="table table-sm table-striped">
<caption>Data summary</caption>
<tbody>
<tr class="odd">
<td style="text-align: left;">Name</td>
<td style="text-align: left;">dt_pc</td>
</tr>
<tr class="even">
<td style="text-align: left;">Number of rows</td>
<td style="text-align: left;">7745</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Number of columns</td>
<td style="text-align: left;">6</td>
</tr>
<tr class="even">
<td style="text-align: left;">Key</td>
<td style="text-align: left;">NULL</td>
</tr>
<tr class="odd">
<td style="text-align: left;">_______________________</td>
<td style="text-align: left;"></td>
</tr>
<tr class="even">
<td style="text-align: left;">Column type frequency:</td>
<td style="text-align: left;"></td>
</tr>
<tr class="odd">
<td style="text-align: left;">character</td>
<td style="text-align: left;">2</td>
</tr>
<tr class="even">
<td style="text-align: left;">numeric</td>
<td style="text-align: left;">4</td>
</tr>
<tr class="odd">
<td style="text-align: left;">________________________</td>
<td style="text-align: left;"></td>
</tr>
<tr class="even">
<td style="text-align: left;">Group variables</td>
<td style="text-align: left;">None</td>
</tr>
</tbody>
</table>
<p><strong>Variable type: character</strong></p>
<table class="table table-sm table-striped">
<colgroup>
<col style="width: 19%">
<col style="width: 13%">
<col style="width: 19%">
<col style="width: 5%">
<col style="width: 5%">
<col style="width: 8%">
<col style="width: 12%">
<col style="width: 15%">
</colgroup>
<thead>
<tr class="header">
<th style="text-align: left;">skim_variable</th>
<th style="text-align: right;">n_missing</th>
<th style="text-align: right;">complete_rate</th>
<th style="text-align: right;">min</th>
<th style="text-align: right;">max</th>
<th style="text-align: right;">empty</th>
<th style="text-align: right;">n_unique</th>
<th style="text-align: right;">whitespace</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">Entity</td>
<td style="text-align: right;">0</td>
<td style="text-align: right;">1</td>
<td style="text-align: right;">4</td>
<td style="text-align: right;">32</td>
<td style="text-align: right;">0</td>
<td style="text-align: right;">252</td>
<td style="text-align: right;">0</td>
</tr>
<tr class="even">
<td style="text-align: left;">Code</td>
<td style="text-align: right;">0</td>
<td style="text-align: right;">1</td>
<td style="text-align: right;">0</td>
<td style="text-align: right;">8</td>
<td style="text-align: right;">899</td>
<td style="text-align: right;">224</td>
<td style="text-align: right;">0</td>
</tr>
</tbody>
</table>
<p><strong>Variable type: numeric</strong></p>
<table class="table table-sm table-striped">
<colgroup>
<col style="width: 36%">
<col style="width: 6%">
<col style="width: 9%">
<col style="width: 6%">
<col style="width: 6%">
<col style="width: 5%">
<col style="width: 5%">
<col style="width: 6%">
<col style="width: 6%">
<col style="width: 6%">
<col style="width: 4%">
</colgroup>
<thead>
<tr class="header">
<th style="text-align: left;">skim_variable</th>
<th style="text-align: right;">n_missing</th>
<th style="text-align: right;">complete_rate</th>
<th style="text-align: right;">mean</th>
<th style="text-align: right;">sd</th>
<th style="text-align: right;">p0</th>
<th style="text-align: right;">p25</th>
<th style="text-align: right;">p50</th>
<th style="text-align: right;">p75</th>
<th style="text-align: right;">p100</th>
<th style="text-align: left;">hist</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">Year</td>
<td style="text-align: right;">0</td>
<td style="text-align: right;">1.00</td>
<td style="text-align: right;">2005.07</td>
<td style="text-align: right;">8.93</td>
<td style="text-align: right;">1990.00</td>
<td style="text-align: right;">1997.00</td>
<td style="text-align: right;">2005.00</td>
<td style="text-align: right;">2013.00</td>
<td style="text-align: right;">2020.00</td>
<td style="text-align: left;">▇▇▇▇▇</td>
</tr>
<tr class="even">
<td style="text-align: left;">GDP per capita, PPP (constant 2017 international $)</td>
<td style="text-align: right;">1579</td>
<td style="text-align: right;">0.80</td>
<td style="text-align: right;">17879.29</td>
<td style="text-align: right;">20132.68</td>
<td style="text-align: right;">436.72</td>
<td style="text-align: right;">3678.83</td>
<td style="text-align: right;">10365.78</td>
<td style="text-align: right;">25832.03</td>
<td style="text-align: right;">161971.47</td>
<td style="text-align: left;">▇▂▁▁▁</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Annual consumption-based CO2 emissions (per capita)</td>
<td style="text-align: right;">3680</td>
<td style="text-align: right;">0.52</td>
<td style="text-align: right;">6.53</td>
<td style="text-align: right;">6.92</td>
<td style="text-align: right;">0.05</td>
<td style="text-align: right;">1.19</td>
<td style="text-align: right;">4.30</td>
<td style="text-align: right;">9.89</td>
<td style="text-align: right;">57.79</td>
<td style="text-align: left;">▇▂▁▁▁</td>
</tr>
<tr class="even">
<td style="text-align: left;">Annual CO2 emissions (per capita)</td>
<td style="text-align: right;">492</td>
<td style="text-align: right;">0.94</td>
<td style="text-align: right;">5.11</td>
<td style="text-align: right;">6.44</td>
<td style="text-align: right;">0.02</td>
<td style="text-align: right;">0.77</td>
<td style="text-align: right;">2.97</td>
<td style="text-align: right;">7.42</td>
<td style="text-align: right;">68.72</td>
<td style="text-align: left;">▇▁▁▁▁</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="cell">
<details>
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb9"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb9-1"><a href="#cb9-1" aria-hidden="true" tabindex="-1"></a><span class="co"># hidden chunk</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
</div>
</section>
</main>
<!-- /main column -->
<script id="quarto-html-after-body" type="application/javascript">
window.document.addEventListener("DOMContentLoaded", function (event) {
const icon = "";
const anchorJS = new window.AnchorJS();
anchorJS.options = {
placement: 'right',
icon: icon
};
anchorJS.add('.anchored');
const clipboard = new window.ClipboardJS('.code-copy-button', {
target: function(trigger) {
return trigger.previousElementSibling;
}
});
clipboard.on('success', function(e) {
// button target
const button = e.trigger;
// don't keep focus
button.blur();
// flash "checked"
button.classList.add('code-copy-button-checked');
var currentTitle = button.getAttribute("title");
button.setAttribute("title", "Copied!");
setTimeout(function() {
button.setAttribute("title", currentTitle);
button.classList.remove('code-copy-button-checked');
}, 1000);
// clear code selection
e.clearSelection();
});
function tippyHover(el, contentFn) {
const config = {
allowHTML: true,
content: contentFn,
maxWidth: 500,
delay: 100,
arrow: false,
appendTo: function(el) {
return el.parentElement;
},
interactive: true,
interactiveBorder: 10,
theme: 'quarto',
placement: 'bottom-start'
};
window.tippy(el, config);
}
const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]');
for (var i=0; i<noterefs.length; i++) {
const ref = noterefs[i];
tippyHover(ref, function() {
let href = ref.getAttribute('href');
try { href = new URL(href).hash; } catch {}
const id = href.replace(/^#\/?/, "");
const note = window.document.getElementById(id);
return note.innerHTML;
});
}
var bibliorefs = window.document.querySelectorAll('a[role="doc-biblioref"]');
for (var i=0; i<bibliorefs.length; i++) {
const ref = bibliorefs[i];
const cites = ref.parentNode.getAttribute('data-cites').split(' ');
tippyHover(ref, function() {
var popup = window.document.createElement('div');
cites.forEach(function(cite) {
var citeDiv = window.document.createElement('div');
citeDiv.classList.add('hanging-indent');
citeDiv.classList.add('csl-entry');
var biblioDiv = window.document.getElementById('ref-' + cite);
if (biblioDiv) {
citeDiv.innerHTML = biblioDiv.innerHTML;
}
popup.appendChild(citeDiv);
});
return popup.innerHTML;
});
}
});
</script>
</div> <!-- /content -->
</body></html>
\ No newline at end of file
--- ---
title: "GDP & emissions" title: "GDP & emissions - degrowthing or decoupling?"
author: "Ben Anderson & Tom Rushby" author: "Ben Anderson & Tom Rushby"
date: "2022-10-06" date: "2022-10-06"
date-modified: "`r Sys.time()`" date-modified: "`r Sys.time()`"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment