r2dii.plot
A package containing functions to create standard PACTA plots using ggplot, together with data processing functions needed for the charts.
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (18.2%) to scientific vocabulary
Last synced: 11 months ago
·
JSON representation
Repository
A package containing functions to create standard PACTA plots using ggplot, together with data processing functions needed for the charts.
Basic Info
- Host: GitHub
- Owner: RMI-PACTA
- License: other
- Language: R
- Default Branch: main
- Homepage: https://rmi-pacta.github.io/r2dii.plot
- Size: 42.6 MB
Statistics
- Stars: 8
- Watchers: 4
- Forks: 2
- Open Issues: 22
- Releases: 8
Created over 5 years ago
· Last pushed about 1 year ago
Metadata Files
Readme
Changelog
License
Codeowners
README.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
fig.align = "left",
out.width = "100%"
)
```
# r2dii.plot
[](https://lifecycle.r-lib.org/articles/stages.html#stable)
[](https://app.codecov.io/gh/RMI-PACTA/r2dii.plot?branch=master)
[](https://CRAN.R-project.org/package=r2dii.plot)
[](https://github.com/RMI-PACTA/r2dii.plot/actions/workflows/R.yml)
The goal of r2dii.plot is to help you plot PACTA data in an informative,
beautiful, and easy way.
## Installation
You can install the released version of r2dii.plot from CRAN with:
```r
install.packages("r2dii.plot")
```
And the development version from GitHub with:
```r
# install.packages("devtools")
devtools::install_github("RMI-PACTA/r2dii.plot")
```
## Example
The r2dii.plot package is designed to work smoothly with other "r2dii" packages
-- [r2dii.data](https://rmi-pacta.github.io/r2dii.data/),
[r2dii.match](https://rmi-pacta.github.io/r2dii.match/), and
[r2dii.analysis](https://rmi-pacta.github.io/r2dii.analysis/). It also
plays well with the [ggplot2](https://ggplot2.tidyverse.org/) package, which
helps you customize your plots. Here, we'll use an example data set that comes
with r2dii.plot and that resembles the output of the
[`target_market_share()`](https://rmi-pacta.github.io/r2dii.analysis/reference/target_market_share.html)
function in the r2dii.analysis package.
```{r setup}
library(ggplot2, warn.conflicts = FALSE)
library(dplyr, warn.conflicts = FALSE)
library(r2dii.plot)
```
### Plot trajectory chart
* Use `qplot_*()` to quickly get a plot with standard titles and labels.
```{r}
# `data` must meet documented "Requirements"
data <- market_share_demo %>%
filter(
sector == "power",
technology == "renewablescap",
region == "global",
scenario_source == "demo_2020"
)
qplot_trajectory(data)
```
* Use `plot_*()` for a more "bare" plot that you can customize yourself by
modifying the input data and applying `ggplot2` functions.
```{r}
data <- market_share_demo %>%
filter(
sector == "power",
technology == "renewablescap",
region == "global",
scenario_source == "demo_2020",
between(year, 2020, 2035)
) %>%
mutate(
label = case_when(
metric == "projected" ~ "Your Portfolio",
metric == "corporate_economy" ~ "Benchmark (Corp. Econ.)",
metric == "target_sds" ~ "SDS Scenario",
metric == "target_sps" ~ "SPS Scenario",
metric == "target_cps" ~ "CPS Scenario",
TRUE ~ metric
)
)
data %>%
prep_trajectory() %>%
plot_trajectory() +
labs(
title = "Power production trajectory for Renewables",
subtitle = "With reference to climate scenarios.",
x = "Year",
y = "Production (normalized to 2020)"
)
```
For examples of other plots and data sets please visit [Get started with
r2dii.plot](https://rmi-pacta.github.io/r2dii.plot/articles/r2dii-plot.html).
## Funding
This project has received funding from the [European Union LIFE
program](https://wayback.archive-it.org/12090/20210412123959/https://ec.europa.eu/easme/en/) and the International Climate
Initiative (IKI).
The Federal Ministry for the Environment, Nature Conservation and Nuclear Safety
(BMU) supports this initiative on the basis of a decision adopted by the German
Bundestag. The views expressed are the sole responsibility of the authors and do
not necessarily reflect the views of the funders. The funders are not
responsible for any use that may be made of the information it contains.
Owner
- Name: RMI-PACTA
- Login: RMI-PACTA
- Kind: organization
- Repositories: 31
- Profile: https://github.com/RMI-PACTA
GitHub Events
Total
- Create event: 28
- Release event: 2
- Issues event: 21
- Delete event: 30
- Issue comment event: 39
- Push event: 121
- Pull request review comment event: 16
- Pull request review event: 53
- Pull request event: 51
Last Year
- Create event: 28
- Release event: 2
- Issues event: 21
- Delete event: 30
- Issue comment event: 39
- Push event: 121
- Pull request review comment event: 16
- Pull request review event: 53
- Pull request event: 51
Committers
Last synced: almost 3 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Mauro Lepore | m****e@g****m | 299 |
| MonikaFu | m****a@g****m | 259 |
| Jackson Hoffart | j****t@g****m | 6 |
| GitHub Actions | a****s@g****m | 5 |
| CJ Yetman | cj@2****g | 1 |
| Alex Axthelm | A****x@2****g | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 16
- Total pull requests: 27
- Average time to close issues: 6 months
- Average time to close pull requests: 1 day
- Total issue authors: 5
- Total pull request authors: 4
- Average comments per issue: 1.69
- Average comments per pull request: 0.44
- Merged pull requests: 24
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 12
- Pull requests: 27
- Average time to close issues: 18 days
- Average time to close pull requests: 1 day
- Issue authors: 4
- Pull request authors: 4
- Average comments per issue: 1.25
- Average comments per pull request: 0.44
- Merged pull requests: 24
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- jdhoffa (13)
- cjyetman (9)
- MonikaFu (8)
- AlexAxthelm (3)
- jacobvjk (2)
- maurolepore (1)
Pull Request Authors
- jdhoffa (21)
- cjyetman (19)
- jacobvjk (5)
- MonikaFu (3)
- AlexAxthelm (3)
Top Labels
Issue Labels
upkeep (8)
bug (5)
next-release (5)
documentation (3)
feature (3)
priority (2)
Pull Request Labels
upkeep (5)
bug (2)
feature (1)
breaking change :skull_and_crossbones: (1)
Packages
- Total packages: 1
-
Total downloads:
- cran 415 last-month
- Total dependent packages: 0
- Total dependent repositories: 5
- Total versions: 9
- Total maintainers: 1
cran.r-project.org: r2dii.plot
Visualize the Climate Scenario Alignment of a Financial Portfolio
- Homepage: https://rmi-pacta.github.io/r2dii.plot/
- Documentation: http://cran.r-project.org/web/packages/r2dii.plot/r2dii.plot.pdf
- License: MIT + file LICENSE
-
Latest release: 0.5.2
published about 1 year ago
Rankings
Dependent repos count: 13.0%
Forks count: 14.2%
Stargazers count: 19.3%
Average: 22.0%
Dependent packages count: 28.6%
Downloads: 34.9%
Maintainers (1)
Last synced:
11 months ago
Dependencies
DESCRIPTION
cran
- R >= 3.4 depends
- dplyr * imports
- forcats * imports
- ggplot2 * imports
- ggrepel * imports
- glue * imports
- lifecycle * imports
- magrittr * imports
- r2dii.data * imports
- rlang * imports
- scales * imports
- stringr * imports
- covr * suggests
- r2dii.analysis * suggests
- r2dii.match * suggests
- rmarkdown * suggests
- spelling * suggests
- testthat >= 3.0.0 suggests
.github/workflows/check-full.yaml
actions
- actions/checkout v2 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/check-full_r2dii-devel.yaml
actions
- actions/checkout v2 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml
actions
- actions/checkout v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pr-commands.yaml
actions
- actions/checkout v2 composite
- r-lib/actions/pr-fetch v2 composite
- r-lib/actions/pr-push v2 composite
- r-lib/actions/setup-r v2 composite
.github/workflows/test-coverage.yaml
actions
- actions/cache v2 composite
- actions/checkout v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite