Skip to content

Commit

Permalink
increment version
Browse files Browse the repository at this point in the history
  • Loading branch information
fbenke-pik committed Dec 15, 2023
1 parent a345842 commit 8a358d4
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .buildlibrary
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ValidationKey: '222064080'
ValidationKey: '222106326'
AcceptedWarnings:
- 'Warning: package ''.*'' was built under R version'
- 'Warning: namespace ''.*'' is not available and has been replaced'
Expand Down
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ 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.0
date-released: '2023-12-13'
version: 1.127.1
date-released: '2023-12-15'
abstract: Contains the REMIND-specific routines for data and model output manipulation.
authors:
- family-names: Rodrigues
Expand Down
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Type: Package
Package: remind2
Title: The REMIND R package (2nd generation)
Version: 1.127.0
Date: 2023-12-13
Version: 1.127.1
Date: 2023-12-15
Authors@R: c(
person("Renato", "Rodrigues", , "[email protected]", role = c("aut", "cre")),
person("Lavinia", "Baumstark", role = "aut"),
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.0**
R package **remind2**, version **1.127.1**

[![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.0, <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.127.1, <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.0},
note = {R package version 1.127.1},
url = {https://github.com/pik-piam/remind2},
}
```
37 changes: 26 additions & 11 deletions inst/markdown/nashAnalysis.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ p <- mip::mipIterations(
xAxis = "iteration", facets = "tall", color = NULL, slider = NULL
)
print(p)
for (i in p) {
print(i)
}
```


Expand Down Expand Up @@ -146,7 +149,9 @@ p <- mip::mipIterations(
facetScales = "free_y"
)
print(p)
for (i in p) {
print(i)
}
```

## price not discounted
Expand Down Expand Up @@ -204,7 +209,9 @@ p <- mip::mipIterations(
facetScales = "free_y"
)
print(p)
for (i in p) {
print(i)
}
```

## prices and surplus in one plot
Expand Down Expand Up @@ -266,9 +273,7 @@ for (v in unique(prices_and_surplus_steps$all_enty)) {
}
```


### x: time, slider: iter, facet: var + all_enty

```{r results = "asis"}
df <- prices_and_surplus_steps %>%
Expand Down Expand Up @@ -331,7 +336,8 @@ for (v in unique(prices_and_surplus_scaled$all_enty)) {
lapply(p, function(plot) {
plot <- plot +
ggplot2::scale_y_continuous("p80_surplus", sec.axis =
ggplot2::sec_axis(~ . / scale_factor, name = "p80_pvp_itr_no_discount"))
ggplot2::sec_axis(~ . / scale_factor, name = "p80_pvp_itr_no_discount")) +
theme(legend.position = "bottom")
print(plot)
})
}
Expand Down Expand Up @@ -389,7 +395,7 @@ plots <- p[[1]] + ggplot2::scale_y_log10(limits = c(1e-4, 1e+1))
plots <- list(plots)
plots <- lapply(plots, plotly::ggplotly) %>% adjustSliderAnimation()
print(htmltools::tagList(plots))
htmltools::tagList(plots)
```


Expand All @@ -402,11 +408,14 @@ df <- mip::getPlotData("p80_PriceChangePriceAnticipReg", params$gdx) %>%
mutate(ttot := as.numeric(ttot)) %>%
select(-"iteration")
mip::mipIterations(
plots <- mip::mipIterations(
plotData = df, returnGgplots = TRUE,
xAxis = "ttot", facets = "all_regi", color = "all_enty", slider = NULL,
facetScales = "free_y"
)
plots[[1]]
```

### p80_DevPriceAnticipReg
Expand All @@ -418,11 +427,13 @@ df <- mip::getPlotData("p80_DevPriceAnticipReg", params$gdx) %>%
mutate(ttot := as.numeric(ttot)) %>%
select(-"iteration")
mip::mipIterations(
plots <- mip::mipIterations(
plotData = df, returnGgplots = TRUE,
xAxis = "ttot", facets = "all_regi", color = "all_enty", slider = NULL,
facetScales = "free_y"
)
plots[[1]]
```

### p80_DevPriceAnticipGlob
Expand All @@ -448,18 +459,22 @@ df.allmax <- mip::getPlotData("p80_DevPriceAnticipGlobAllMax", params$gdx) %>%
df <- rbind(df, df.all, df.allmax)
mip::mipIterations(
plots <- mip::mipIterations(
plotData = df, returnGgplots = TRUE,
xAxis = "ttot", facets = "all_enty", color = NULL, slider = NULL,
facetScales = "free_y"
)
plots[[1]]
df.max <- mip::getPlotData("p80_DevPriceAnticipGlobMax", params$gdx) %>%
select(-"iteration")
mip::mipIterations(
plots <- mip::mipIterations(
plotData = df.max, returnGgplots = TRUE,
xAxis = "ttot", facets = "all_enty", color = NULL, slider = NULL,
facetScales = "free_y"
)
plots[[1]]
```

0 comments on commit 8a358d4

Please sign in to comment.