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
SERG
fridayFagPackets
Commits
9d54a169
Commit
9d54a169
authored
2 years ago
by
Ben Anderson
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into 'master'
added notes & updated plot labels See merge request
!14
parents
a02992cf
a2e006dd
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!14
added notes & updated plot labels
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 @
9d54a169
This diff is collapsed.
Click to expand it.
gdpAndEmissions/UK_GDP_emissions.qmd
+
20
−
8
View file @
9d54a169
...
@@ -39,7 +39,7 @@ dt_pc <- data.table::fread(here::here("data", "co2-emissions-and-gdp-per-capita.
...
@@ -39,7 +39,7 @@ dt_pc <- data.table::fread(here::here("data", "co2-emissions-and-gdp-per-capita.
# UK: absolute GDP & emissions
# UK: absolute GDP & emissions
First we'll try production emissions
\@fig-ukPlotProd
.
First we'll try production emissions.
```{r}
```{r}
#| label: fig-ukPlotProd
#| label: fig-ukPlotProd
...
@@ -53,10 +53,10 @@ ggplot2::ggplot(plotDT, aes(y = as.numeric(`GDP, PPP (constant 2017 internationa
...
@@ -53,10 +53,10 @@ ggplot2::ggplot(plotDT, aes(y = as.numeric(`GDP, PPP (constant 2017 internationa
alpha = Year)) +
alpha = Year)) +
geom_point() +
geom_point() +
labs(x = "Annual CO2 emissions (production-based, gT)",
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
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
...
@@ -71,14 +71,14 @@ ggplot2::ggplot(plotDT, aes(y = as.numeric(`GDP, PPP (constant 2017 internationa
alpha = Year)) +
alpha = Year)) +
geom_point() +
geom_point() +
labs(x = "Annual CO2 emissions (consumption-based, gT)",
labs(x = "Annual CO2 emissions (consumption-based, gT)",
y = "GDP $bn")
y = "GDP $bn
(constant 2017 $)
")
```
```
# UK: per capita GDP & emissions
# UK: per capita GDP & emissions
Since we'll be dividing everything pairwise by the same denominator, nothing much should change...
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}
```{r}
#| label: fig-ukPlotProdPcc
#| label: fig-ukPlotProdPcc
...
@@ -92,10 +92,10 @@ ggplot2::ggplot(plotDT, aes(y = as.numeric(`GDP per capita, PPP (constant 2017 i
...
@@ -92,10 +92,10 @@ ggplot2::ggplot(plotDT, aes(y = as.numeric(`GDP per capita, PPP (constant 2017 i
alpha = Year)) +
alpha = Year)) +
geom_point() +
geom_point() +
labs(x = "Annual CO2 emissions per capita (production-based, T)",
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
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
...
@@ -110,9 +110,21 @@ ggplot2::ggplot(plotDT, aes(y = as.numeric(`GDP per capita, PPP (constant 2017 i
alpha = Year)) +
alpha = Year)) +
geom_point() +
geom_point() +
labs(x = "Annual CO2 emissions per capita (consumption-based, T)",
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
# Data descriptions
Check
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