Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
fridayFagPackets
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tom Rushby
fridayFagPackets
Commits
a2e006dd
Commit
a2e006dd
authored
2 years ago
by
Ben Anderson
Browse files
Options
Downloads
Patches
Plain Diff
added notes & updated plot labels
parent
3475d40c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/UK_GDP_emissions.html
+21
-12
21 additions, 12 deletions
docs/UK_GDP_emissions.html
gdpAndEmissions/UK_GDP_emissions.qmd
+20
-8
20 additions, 8 deletions
gdpAndEmissions/UK_GDP_emissions.qmd
with
41 additions
and
20 deletions
docs/UK_GDP_emissions.html
+
21
−
12
View file @
a2e006dd
This diff is collapsed.
Click to expand it.
gdpAndEmissions/UK_GDP_emissions.qmd
+
20
−
8
View file @
a2e006dd
...
...
@@ -39,7 +39,7 @@ dt_pc <- data.table::fread(here::here("data", "co2-emissions-and-gdp-per-capita.
# UK: absolute GDP & emissions
First we'll try production emissions
\@fig-ukPlotProd
.
First we'll try production emissions.
```{r}
#| label: fig-ukPlotProd
...
...
@@ -53,10 +53,10 @@ ggplot2::ggplot(plotDT, aes(y = as.numeric(`GDP, PPP (constant 2017 internationa
alpha = Year)) +
geom_point() +
labs(x = "Annual CO2 emissions (production-based, gT)",
y = "GDP $bn")
y = "GDP $bn
(constant 2017 $)
")
```
Next we'll try consumption emissions
\@fig-ukPlotCons
.
Next we'll try consumption emissions.
Note that 2020 consumption-based emissions data is missing so you don't see the downtick
...
...
@@ -71,14 +71,14 @@ ggplot2::ggplot(plotDT, aes(y = as.numeric(`GDP, PPP (constant 2017 internationa
alpha = Year)) +
geom_point() +
labs(x = "Annual CO2 emissions (consumption-based, gT)",
y = "GDP $bn")
y = "GDP $bn
(constant 2017 $)
")
```
# UK: per capita GDP & emissions
Since we'll be dividing everything pairwise by the same denominator, nothing much should change...
First we'll try production emissions
\@fig-ukPlotProdPcc
.
First we'll try production emissions.
```{r}
#| label: fig-ukPlotProdPcc
...
...
@@ -92,10 +92,10 @@ ggplot2::ggplot(plotDT, aes(y = as.numeric(`GDP per capita, PPP (constant 2017 i
alpha = Year)) +
geom_point() +
labs(x = "Annual CO2 emissions per capita (production-based, T)",
y = "GDP per capita
$
")
y = "GDP per capita
(constant 2017 $)
")
```
Next we'll try consumption emissions
\@fig-ukPlotConsPcc
.
Next we'll try consumption emissions.
Note that 2020 consumption-based emissions data is missing so you don't see the downtick
...
...
@@ -110,9 +110,21 @@ ggplot2::ggplot(plotDT, aes(y = as.numeric(`GDP per capita, PPP (constant 2017 i
alpha = Year)) +
geom_point() +
labs(x = "Annual CO2 emissions per capita (consumption-based, T)",
y = "GDP per capita
$
")
y = "GDP per capita
(constant 2017 $)
")
```
# Whom do we love?
[quarto](https://quarto.org/)
[data.table](https://www.rdocumentation.org/packages/data.table/versions/1.14.2)
[ggplot2](https://www.rdocumentation.org/packages/ggplot2/versions/3.3.6)
[here](https://www.rdocumentation.org/packages/here/versions/1.0.1)
[skimr](https://www.rdocumentation.org/packages/skimr/versions/2.1.4)
# Data descriptions
Check
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment