-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from fbenke-pik/master
update vignette for compareScenarios
- Loading branch information
Showing
11 changed files
with
275 additions
and
558 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Type: Package | ||
Package: piamPlotComparison | ||
Title: Create comparison plots for your model results | ||
Version: 0.0.11 | ||
Date: 2024-04-25 | ||
Version: 0.0.12 | ||
Date: 2024-04-29 | ||
Authors@R: c( | ||
person("Falk", "Benke", , "[email protected]", role = c("aut", "cre")), | ||
person("Christof", "Schoetz", role = "aut") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Create comparison plots for your model results | ||
|
||
R package **piamPlotComparison**, version **0.0.11** | ||
R package **piamPlotComparison**, version **0.0.12** | ||
|
||
[![CRAN status](https://www.r-pkg.org/badges/version/piamPlotComparison)](https://cran.r-project.org/package=piamPlotComparison) [![R build status](https://github.com/pik-piam/piamPlotComparison/workflows/check/badge.svg)](https://github.com/pik-piam/piamPlotComparison/actions) [![codecov](https://codecov.io/gh/pik-piam/piamPlotComparison/branch/master/graph/badge.svg)](https://app.codecov.io/gh/pik-piam/piamPlotComparison) [![r-universe](https://pik-piam.r-universe.dev/badges/piamPlotComparison)](https://pik-piam.r-universe.dev/builds) | ||
|
||
|
@@ -46,7 +46,7 @@ In case of questions / problems please contact Falk Benke <[email protected]> | |
|
||
To cite package **piamPlotComparison** in publications use: | ||
|
||
Benke F, Schoetz C (2024). _piamPlotComparison: Create comparison plots for your model results_. R package version 0.0.11, <https://github.com/pik-piam/piamPlotComparison>. | ||
Benke F, Schoetz C (2024). _piamPlotComparison: Create comparison plots for your model results_. R package version 0.0.12, <https://github.com/pik-piam/piamPlotComparison>. | ||
|
||
A BibTeX entry for LaTeX users is | ||
|
||
|
@@ -55,7 +55,7 @@ A BibTeX entry for LaTeX users is | |
title = {piamPlotComparison: Create comparison plots for your model results}, | ||
author = {Falk Benke and Christof Schoetz}, | ||
year = {2024}, | ||
note = {R package version 0.0.11}, | ||
note = {R package version 0.0.12}, | ||
url = {https://github.com/pik-piam/piamPlotComparison}, | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,42 @@ | ||
## ----include = FALSE--------------------------------------------------------------------------------------------------------------- | ||
## ----include = FALSE------------------------------------------------------------------------------------------------------------------ | ||
knitr::opts_chunk$set( | ||
collapse = TRUE, | ||
comment = "#>", | ||
eval = FALSE | ||
) | ||
|
||
## ---------------------------------------------------------------------------------------------------------------------------------- | ||
# library(remind2) | ||
# compareScenarios2( | ||
## ------------------------------------------------------------------------------------------------------------------------------------- | ||
# library(piamPlotComparison) | ||
# compareScenarios( | ||
# projectLibrary = "myProjectLibrary", | ||
# mifScen = c("path/to/Base.mif", "path/to/NDC.mif"), | ||
# mifHist = "path/to/historical.mif", | ||
# outputFile = "CompareScenarios2Example") | ||
# outputFile = "CompareScenariosExample") | ||
|
||
## ---------------------------------------------------------------------------------------------------------------------------------- | ||
# library(remind2) | ||
# compareScenarios2( | ||
## ------------------------------------------------------------------------------------------------------------------------------------- | ||
# library(piamPlotComparison) | ||
# compareScenarios( | ||
# projectLibrary = "myProjectLib", | ||
# mifScen = c("path/to/scen1.mif", "path/to/scen2.mif", "path/to/scen3.mif"), # TODO. | ||
# mifHist = "path/to/historical.mif", # TODO. | ||
# outputDir = "path/to/where/rmds/should/be/copied/to", # TODO. | ||
# outputFormat = "Rmd", | ||
# # Add current time as output name to not overwrite other things: | ||
# outputFile = format(Sys.time(), "CompScen2-%Y%m%d-%H%M%S")) | ||
|
||
## ----prepare mark------------------------------------------------------------------------------------------------------------------ | ||
## ----prepare mark--------------------------------------------------------------------------------------------------------------------- | ||
# # CLICK "RUN ALL CHUNKS ABOVE" HERE TO PREPARE THE ENVIRONMENT | ||
|
||
## ---------------------------------------------------------------------------------------------------------------------------------- | ||
# library(remind2) | ||
# loadModeltest() | ||
# varList <- variablesAsList(data, entry = "INFO") | ||
# View(varList) # in RStudio | ||
|
||
## ---------------------------------------------------------------------------------------------------------------------------------- | ||
# loadCs2Data( | ||
# c("path/to/scen1.mif", "path/to/scen2.mif"), # TODO. | ||
# "path/to/historical.mif") # TODO. | ||
|
||
## ---------------------------------------------------------------------------------------------------------------------------------- | ||
# compareScenarios2( | ||
# mifScen = c("path/to/scen1.mif", "path/to/scen2.mif"), # TODO. | ||
# mifHist = "path/to/historical.mif", # TODO. | ||
# outputFile = format(Sys.time(), "cs2-%Y%m%d-%H%M%S"), | ||
# sections = NN) # TODO: Replace NN by the number of the section you changed | ||
# # (or by "all" to build the whole compare scenarios file, which will take a while). | ||
|
||
## ---------------------------------------------------------------------------------------------------------------------------------- | ||
# compareScenarios2( | ||
## ------------------------------------------------------------------------------------------------------------------------------------- | ||
# compareScenarios( | ||
# projectLibrary = "myProjectLib", | ||
# mifScen = c(newName1 = "path/to/scen1.mif", newName2 = "path/to/scen2.mif"), | ||
# ...) | ||
|
||
## ---------------------------------------------------------------------------------------------------------------------------------- | ||
# compareScenarios2( | ||
## ------------------------------------------------------------------------------------------------------------------------------------- | ||
# compareScenarios( | ||
# projectLibrary = "myProjectLib", | ||
# mifScen = c("path/to/scen1.mif", "path/to/scen2.mif"), | ||
# cfgScen = c("path/to/scen1/config.RData", "path/to/scen2/config.RData"), | ||
# cfgDefault = "path/to/default.cfg", | ||
# ...) | ||
|
Oops, something went wrong.