Skip to content

Commit

Permalink
Merge pull request #497 from cchrisgong/reorderSE
Browse files Browse the repository at this point in the history
Reorder SE, PE, FE, UE mix
  • Loading branch information
cchrisgong authored Dec 15, 2023
2 parents 5cfaeab + ab1aa34 commit eec8ce9
Show file tree
Hide file tree
Showing 8 changed files with 293 additions and 231 deletions.
2 changes: 1 addition & 1 deletion .buildlibrary
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ValidationKey: '222126032'
ValidationKey: '222283680'
AcceptedWarnings:
- 'Warning: package ''.*'' was built under R version'
- 'Warning: namespace ''.*'' is not available and has been replaced'
Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cff-version: 1.2.0
message: If you use this software, please cite it using the metadata from this file.
type: software
title: 'remind2: The REMIND R package (2nd generation)'
version: 1.127.2
version: 1.128.0
date-released: '2023-12-15'
abstract: Contains the REMIND-specific routines for data and model output manipulation.
authors:
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: remind2
Title: The REMIND R package (2nd generation)
Version: 1.127.2
Version: 1.128.0
Date: 2023-12-15
Authors@R: c(
person("Renato", "Rodrigues", , "[email protected]", role = c("aut", "cre")),
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The REMIND R package (2nd generation)

R package **remind2**, version **1.127.2**
R package **remind2**, version **1.128.0**

[![CRAN status](https://www.r-pkg.org/badges/version/remind2)](https://cran.r-project.org/package=remind2) [![R build status](https://github.com/pik-piam/remind2/workflows/check/badge.svg)](https://github.com/pik-piam/remind2/actions) [![codecov](https://codecov.io/gh/pik-piam/remind2/branch/master/graph/badge.svg)](https://app.codecov.io/gh/pik-piam/remind2) [![r-universe](https://pik-piam.r-universe.dev/badges/remind2)](https://pik-piam.r-universe.dev/builds)

Expand Down Expand Up @@ -49,7 +49,7 @@ In case of questions / problems please contact Renato Rodrigues <renato.rodrigue

To cite package **remind2** in publications use:

Rodrigues R, Baumstark L, Benke F, Dietrich J, Dirnaichner A, Führlich P, Giannousakis A, Hasse R, Hilaire J, Klein D, Koch J, Kowalczyk K, Levesque A, Malik A, Merfort A, Merfort L, Morena-Leiva S, Pehl M, Pietzcker R, Rauner S, Richters O, Rottoli M, Schötz C, Schreyer F, Siala K, Sörgel B, Spahr M, Strefler J, Verpoort P, Weigmann P (2023). _remind2: The REMIND R package (2nd generation)_. R package version 1.127.2, <URL: https://github.com/pik-piam/remind2>.
Rodrigues R, Baumstark L, Benke F, Dietrich J, Dirnaichner A, Führlich P, Giannousakis A, Hasse R, Hilaire J, Klein D, Koch J, Kowalczyk K, Levesque A, Malik A, Merfort A, Merfort L, Morena-Leiva S, Pehl M, Pietzcker R, Rauner S, Richters O, Rottoli M, Schötz C, Schreyer F, Siala K, Sörgel B, Spahr M, Strefler J, Verpoort P, Weigmann P (2023). _remind2: The REMIND R package (2nd generation)_. R package version 1.128.0, <https://github.com/pik-piam/remind2>.

A BibTeX entry for LaTeX users is

Expand All @@ -58,7 +58,7 @@ A BibTeX entry for LaTeX users is
title = {remind2: The REMIND R package (2nd generation)},
author = {Renato Rodrigues and Lavinia Baumstark and Falk Benke and Jan Philipp Dietrich and Alois Dirnaichner and Pascal Führlich and Anastasis Giannousakis and Robin Hasse and Jérome Hilaire and David Klein and Johannes Koch and Katarzyna Kowalczyk and Antoine Levesque and Aman Malik and Anne Merfort and Leon Merfort and Simón Morena-Leiva and Michaja Pehl and Robert Pietzcker and Sebastian Rauner and Oliver Richters and Marianna Rottoli and Christof Schötz and Felix Schreyer and Kais Siala and Björn Sörgel and Mike Spahr and Jessica Strefler and Philipp Verpoort and Pascal Weigmann},
year = {2023},
note = {R package version 1.127.2},
note = {R package version 1.128.0},
url = {https://github.com/pik-piam/remind2},
}
```
99 changes: 55 additions & 44 deletions inst/markdown/compareScenarios2/cs2_01_summary.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -146,39 +146,44 @@ showMultiLinePlotsByVariable(dIea, items, "GDP|PPP pCap", scales = "fixed")

```{r FE by carrier}
items <- c(
"FE|Solids",
"FE|Liquids",
"FE|Gases",
"FE|Heat",
"FE|Electricity",
"FE|Hydrogen",
"FE|Electricity")
showAreaAndBarPlots(data, items, scales = "fixed")
"FE|Heat",
"FE|Gases",
"FE|Liquids",
"FE|Solids",
NULL
)
showAreaAndBarPlots(data, items, orderVars = "user", scales = "fixed")
```

## FE Industry by carrier

```{r FE Industry by carrier}
items <- c(
"FE|Industry|Solids",
"FE|Industry|Liquids",
"FE|Industry|Gases",
"FE|Industry|Heat",
"FE|Industry|Electricity",
"FE|Industry|Hydrogen",
"FE|Industry|Electricity")
showAreaAndBarPlots(data, items, scales = "fixed")
"FE|Industry|Heat",
"FE|Industry|Gases",
"FE|Industry|Liquids",
"FE|Industry|Solids",
NULL
)
showAreaAndBarPlots(data, items, orderVars = "user", scales = "fixed")
```

## FE Buildings by carrier

```{r FE Buildings by carrier}
items <- c(
"FE|Buildings|Solids",
"FE|Buildings|Liquids",
"FE|Buildings|Gases",
"FE|Buildings|Heat",
"FE|Buildings|Electricity",
"FE|Buildings|Hydrogen",
"FE|Buildings|Electricity")
showAreaAndBarPlots(data, items, scales = "fixed")
"FE|Buildings|Heat",
"FE|Buildings|Gases",
"FE|Buildings|Liquids",
"FE|Buildings|Solids",
NULL)
showAreaAndBarPlots(data, items, orderVars = "user", scales = "fixed")
```

## FE Transport by carrier
Expand All @@ -187,21 +192,24 @@ showAreaAndBarPlots(data, items, scales = "fixed")
items <- c(
"FE|Transport|Electricity",
"FE|Transport|Hydrogen",
"FE|Transport|Gases",
"FE|Transport|Liquids",
"FE|Transport|Gases")
showAreaAndBarPlots(data, items, scales = "fixed")
NULL)
showAreaAndBarPlots(data, items, orderVars = "user", scales = "fixed")
```

## FE CDR by carrier


```{r FE CDR by carrier}
items <- c(
"FE|CDR|Liquids",
"FE|CDR|Gases",
"FE|CDR|Electricity",
"FE|CDR|Hydrogen",
"FE|CDR|Electricity")
showAreaAndBarPlots(data, items, scales = "fixed")
"FE|CDR|Gases",
"FE|CDR|Liquids",
NULL
)
showAreaAndBarPlots(data, items, orderVars = "user", scales = "fixed")
```

## SE Electricity by carrier
Expand All @@ -211,24 +219,25 @@ showAreaAndBarPlots(data, items, scales = "fixed")
tot <- "SE|Electricity"
items <- c(
"SE|Electricity|Coal|w/ CC",
"SE|Electricity|Coal|w/o CC",
"SE|Electricity|Oil",
"SE|Electricity|Gas|w/ CC",
"SE|Electricity|Gas|w/o CC",
"SE|Electricity|Geothermal",
"SE|Electricity|Hydro",
"SE|Electricity|Nuclear",
"SE|Electricity|Biomass|w/ CC",
"SE|Electricity|Biomass|w/o CC",
"SE|Electricity|Net Imports",
"SE|Electricity|Solar|CSP",
"SE|Electricity|Solar|PV",
"SE|Electricity|Wind|Onshore",
"SE|Electricity|Wind|Offshore",
"SE|Electricity|Hydro",
"SE|Electricity|Hydrogen",
"SE|Electricity|Net Imports")
"SE|Electricity|Nuclear",
"SE|Electricity|Geothermal",
"SE|Electricity|Biomass|w/ CC",
"SE|Electricity|Biomass|w/o CC",
"SE|Electricity|Oil",
"SE|Electricity|Gas|w/ CC",
"SE|Electricity|Gas|w/o CC",
"SE|Electricity|Coal|w/ CC",
"SE|Electricity|Coal|w/o CC",
NULL)
showAreaAndBarPlots(data, items, tot, scales = "fixed")
showAreaAndBarPlots(data, items, orderVars = "user", tot, scales = "fixed")
```


Expand All @@ -237,16 +246,18 @@ showAreaAndBarPlots(data, items, tot, scales = "fixed")

```{r PE by carrier}
items <- c(
"PE|Coal",
"PE|Oil",
"PE|Gas",
"PE|Biomass",
"PE|Nuclear",
"PE|Solar",
"PE|Wind",
"PE|Hydro",
"PE|Geothermal")
showAreaAndBarPlots(data, items, scales = "fixed")
"PE|Hydro",
"PE|Nuclear",
"PE|Geothermal",
"PE|Biomass",
"PE|Oil",
"PE|Gas",
"PE|Coal",
NULL)
showAreaAndBarPlots(data, items, orderVars = "user", scales = "fixed")
```


Expand Down
Loading

0 comments on commit eec8ce9

Please sign in to comment.