{"id":13712571,"url":"https://github.com/OCHA-DAP/gghdx","last_synced_at":"2025-05-06T22:31:18.385Z","repository":{"id":47918373,"uuid":"515985779","full_name":"OCHA-DAP/gghdx","owner":"OCHA-DAP","description":"HDX Theme, Scales, and Other Conveniences for 'ggplot2'","archived":false,"fork":false,"pushed_at":"2024-09-23T13:49:57.000Z","size":10407,"stargazers_count":5,"open_issues_count":3,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-12T07:19:19.003Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OCHA-DAP.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-07-20T13:06:22.000Z","updated_at":"2024-10-09T12:24:24.000Z","dependencies_parsed_at":"2024-05-29T21:57:04.193Z","dependency_job_id":"11937f57-47ff-4729-8eb2-116e00dbe995","html_url":"https://github.com/OCHA-DAP/gghdx","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OCHA-DAP%2Fgghdx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OCHA-DAP%2Fgghdx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OCHA-DAP%2Fgghdx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OCHA-DAP%2Fgghdx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OCHA-DAP","download_url":"https://codeload.github.com/OCHA-DAP/gghdx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252779027,"owners_count":21802867,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T23:01:19.951Z","updated_at":"2025-05-06T22:31:17.466Z","avatar_url":"https://github.com/OCHA-DAP.png","language":"R","funding_links":[],"categories":["Themes and aesthetics"],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# gghdx \u003ca href='https://github.com/OCHA-DAP/gghdx'\u003e\u003cimg src='man/figures/logo.png' align=\"right\" height=\"139\"\u003e\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/OCHA-DAP/gghdx/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/OCHA-DAP/gghdx/actions/workflows/R-CMD-check.yaml)\n[![Codecov test coverage](https://codecov.io/gh/OCHA-DAP/gghdx/branch/main/graph/badge.svg)](https://app.codecov.io/gh/OCHA-DAP/gghdx?branch=main)\n\u003c!-- badges: end --\u003e\n\n## Overview\n\nThe goal of gghdx is to make it as simple as possible to follow the HDX visual\nguidelines when creating graphs using ggplot2. While most of the functionality\nis in allowing easy application of the HDX color ramps, the package also\nstreamlines some of the other recommendations and best practices regarding\nplotted text, axis gridlines, and other visual features. The key functionalities\nare:\n\n* `theme_hdx()` is the general package theme.\n* `scale_color_hdx_...()` and `scale_fill_hdx_...()` applies the HDX color scale to\nthe relevant aesthetics.\n* `hdx_colors()`, `hdx_hex()`, and `hdx_pal_...()` provide easy user access to the\nHDX color template. You can view the colors\n* `geom_text_hdx()` and `geom_label_hdx()` wrap the respective base functions\nto plot text using HDX fonts and aesthetics.\n* `scale_y_continuous_hdx()` wraps `scale_y_continuous()` to plot data directly\nstarting from the y-axis.\n* `gghdx()` ensures plot for the session use HDX defaults for color and fill\nscales, uses `theme_hdx()` for all plots, and applies `scale_color_hdx_...()` and\n`scale_fill_hdx_...()`\n* `label_number_hdx()` and `format_number_hdx()` supplement the `scales::label_...()` series of functions\nto format and create labels for numbers in the HDX style.\n\n## Installation\n\nYou can install gghdx directly from CRAN:\n\n```r\ninstall.packages(\"gghdx\")\n```\n\nYou can install the development version from GitHub:\n\n```r\n## install.packages(\"remotes\")\nremotes::install_github(\"OCHA-DAP/gghdx\")\n```\n\n```{r child=\"vignettes/gghdx.Rmd\"}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOCHA-DAP%2Fgghdx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FOCHA-DAP%2Fgghdx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOCHA-DAP%2Fgghdx/lists"}