Science Score: 26.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
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (17.3%) to scientific vocabulary
Keywords from Contributors
energy-system-model
plots
Last synced: 11 months ago
·
JSON representation
Repository
HDX Theme, Scales, and Other Conveniences for 'ggplot2'
Basic Info
- Host: GitHub
- Owner: OCHA-DAP
- License: gpl-3.0
- Language: R
- Default Branch: main
- Size: 9.92 MB
Statistics
- Stars: 6
- Watchers: 5
- Forks: 0
- Open Issues: 3
- Releases: 5
Created about 4 years ago
· Last pushed almost 2 years ago
Metadata Files
Readme
Changelog
License
README.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# gghdx
[](https://github.com/OCHA-DAP/gghdx/actions/workflows/R-CMD-check.yaml)
[](https://app.codecov.io/gh/OCHA-DAP/gghdx?branch=main)
## Overview
The goal of gghdx is to make it as simple as possible to follow the HDX visual
guidelines when creating graphs using ggplot2. While most of the functionality
is in allowing easy application of the HDX color ramps, the package also
streamlines some of the other recommendations and best practices regarding
plotted text, axis gridlines, and other visual features. The key functionalities
are:
* `theme_hdx()` is the general package theme.
* `scale_color_hdx_...()` and `scale_fill_hdx_...()` applies the HDX color scale to
the relevant aesthetics.
* `hdx_colors()`, `hdx_hex()`, and `hdx_pal_...()` provide easy user access to the
HDX color template. You can view the colors
* `geom_text_hdx()` and `geom_label_hdx()` wrap the respective base functions
to plot text using HDX fonts and aesthetics.
* `scale_y_continuous_hdx()` wraps `scale_y_continuous()` to plot data directly
starting from the y-axis.
* `gghdx()` ensures plot for the session use HDX defaults for color and fill
scales, uses `theme_hdx()` for all plots, and applies `scale_color_hdx_...()` and
`scale_fill_hdx_...()`
* `label_number_hdx()` and `format_number_hdx()` supplement the `scales::label_...()` series of functions
to format and create labels for numbers in the HDX style.
## Installation
You can install gghdx directly from CRAN:
```r
install.packages("gghdx")
```
You can install the development version from GitHub:
```r
## install.packages("remotes")
remotes::install_github("OCHA-DAP/gghdx")
```
```{r child="vignettes/gghdx.Rmd"}
```
Owner
- Name: UN-OCHA Humanitarian Data Exchange Project
- Login: OCHA-DAP
- Kind: organization
- Repositories: 271
- Profile: https://github.com/OCHA-DAP
GitHub Events
Total
- Watch event: 1
Last Year
- Watch event: 1
Committers
Last synced: over 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| Seth Caldwell | c****t@g****m | 39 |
| pre-commit-ci[bot] | 6****] | 1 |
| Teun van den Brand | 4****d | 1 |
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 12
- Total pull requests: 23
- Average time to close issues: 3 months
- Average time to close pull requests: 3 days
- Total issue authors: 4
- Total pull request authors: 4
- Average comments per issue: 2.75
- Average comments per pull request: 0.78
- Merged pull requests: 23
- Bot issues: 0
- Bot pull requests: 1
Past Year
- Issues: 0
- Pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: less than a minute
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- zackarno (6)
- caldwellst (2)
- Rawa-Ganjani (2)
- hannahker (1)
Pull Request Authors
- caldwellst (25)
- Rawa-Ganjani (3)
- teunbrand (2)
- pre-commit-ci[bot] (1)
Top Labels
Issue Labels
enhancement (2)
bug (2)
Pull Request Labels
enhancement (3)
Packages
- Total packages: 1
-
Total downloads:
- cran 252 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 4
- Total maintainers: 1
cran.r-project.org: gghdx
HDX Theme, Scales, and Other Conveniences for 'ggplot2'
- Homepage: https://github.com/OCHA-DAP/gghdx
- Documentation: http://cran.r-project.org/web/packages/gghdx/gghdx.pdf
- License: GPL (≥ 3)
-
Latest release: 0.1.4
published almost 2 years ago
Rankings
Forks count: 28.4%
Dependent packages count: 28.5%
Stargazers count: 35.1%
Dependent repos count: 36.9%
Average: 43.4%
Downloads: 88.2%
Maintainers (1)
Last synced:
11 months ago
Dependencies
DESCRIPTION
cran
- R >= 2.10 depends
- dplyr * imports
- ggplot2 * imports
- ggthemes * imports
- magrittr * imports
- purrr * imports
- tibble * imports
- covr * suggests
- here * suggests
- knitr * suggests
- rmarkdown * suggests
- scales * suggests
- showtext * suggests
- sysfonts * suggests
- testthat >= 3.0.0 suggests
.github/workflows/R-CMD-check.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
- JamesIves/github-pages-deploy-action 4.1.4 composite
- 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
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yaml
actions
- actions/checkout v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/rhub.yaml
actions
- r-hub/actions/checkout v1 composite
- r-hub/actions/platform-info v1 composite
- r-hub/actions/run-check v1 composite
- r-hub/actions/setup v1 composite
- r-hub/actions/setup-deps v1 composite
- r-hub/actions/setup-r v1 composite