{"id":50875939,"url":"https://folkehelsestats.github.io/highdir/","last_synced_at":"2026-07-02T23:01:10.658Z","repository":{"id":332959436,"uuid":"1114455758","full_name":"folkehelsestats/highdir","owner":"folkehelsestats","description":"A highchart solution for Hdir","archived":false,"fork":false,"pushed_at":"2026-06-16T15:17:25.000Z","size":10301,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-30T03:24:39.903Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://folkehelsestats.github.io/highdir/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/folkehelsestats.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-11T11:54:07.000Z","updated_at":"2026-06-16T15:16:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"c30e024c-41a5-4a9b-bc01-e1771ce4d0d7","html_url":"https://github.com/folkehelsestats/highdir","commit_stats":null,"previous_names":["folkehelsestats/highdir"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/folkehelsestats/highdir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folkehelsestats%2Fhighdir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folkehelsestats%2Fhighdir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folkehelsestats%2Fhighdir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folkehelsestats%2Fhighdir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/folkehelsestats","download_url":"https://codeload.github.com/folkehelsestats/highdir/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folkehelsestats%2Fhighdir/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35065702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-02T02:00:06.368Z","response_time":173,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2026-06-15T10:00:25.428Z","updated_at":"2026-07-02T23:01:10.651Z","avatar_url":"https://github.com/folkehelsestats.png","language":"R","funding_links":[],"categories":["Interactive"],"sub_categories":[],"readme":"---\noutput:\n  github_document:\n    html_preview: false\nknitr:\n  opts_chunk:\n    eval: false\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/img/README-\",\n  out.width = \"100%\"\n)\n```\n\n# highdir \u003ca href=\"https://github.com/folkehelsestats/highdir\"\u003e\u003cimg src=\"man/figures/logo.png\" align=\"right\" height=\"120\" alt=\"highdir website\" /\u003e\u003c/a\u003e\n\n\n[![R-CMD-check](https://github.com/folkehelsestats/highdir/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/folkehelsestats/highdir/actions/workflows/R-CMD-check.yaml)\n[![Codecov test coverage](https://codecov.io/gh/folkehelsestats/highdir/graph/badge.svg)](https://app.codecov.io/gh/folkehelsestats/highdir)\n[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)\n[![CRAN status](https://www.r-pkg.org/badges/version/highdir)](https://CRAN.R-project.org/package=highdir)\n\n**highdir** is an R package that provides a unified, backend-agnostic API for\nbuilding figures with either [**highcharter**](https://jkunst.com/highcharter/)\n(interactive) or [**ggplot2**](https://ggplot2.tidyverse.org/) (static).\n\nThe package provides two complementary yet fully interoperable APIs for creating figures:\n\n1. **Declarative API** - define all components of a figure up front and render it in a single step.\n2. **Layered API** - incrementally compose a figure by adding layers, similar to the *grammar of graphics*.\n\nBoth APIs produce equivalent visual output and can target any supported backend without changes to the calling code.\n\nWith the declarative API, a figure is specified once as an `hd_spec` object and\ncan later be rendered to different backends. Backend-specific presentation\noptions (such as interactivity or styling tweaks) can be supplied separately via\nan `hc_opts` object prior to rendering.\n\nThe layered API supports an exploratory, iterative workflow. Figures are built\nstep by step using `+` similar to **ggplot2** style, making this approach\nparticularly well suited for interactive analysis and rapid prototyping, while\nremaining backend-independent.\n\nBy default, **highdir** ships with colour palette, theme, and visual identity of [The Norwegian Directorate of Health](https://www.helsedirektoratet.no) (*Helsedirektoratet*).\nTo further enhance usability, a Shiny graphical user interfacef for building and previewing figures is also included as part of the package.\n\n---\n\n## Installation\n\n```r\n# Install from CRAN \ninstall.packages(\"highdir\")\n\n# Install development version from GitHub (dev branch) \nif(!require(remotes)) install.packages(\"remotes\")\nremotes::install_github(\"folkehelsestats/highdir@dev\")\n```\n\n---\n\n## Get started \nThe simplest way to get started with *highdir* is by using the built-in Shiny app.\nIt shows also codes to demonstrate how to use the package programmatically in R.\nStart the app with:\n\n```r\nlibrary(highdir)\nhd_app()\n```\n\nThe app is also available directly through ShinyApps.io at: [https://bit.ly/highdir](https://bit.ly/highdir \"highdir\") \n\n---\n\n## Supported geometries\n\n| Name             | highcharter type | ggplot2 equivalent            | Extra args                            |\n|:-----------------|:-----------------|:------------------------------|:--------------------------------------|\n| `column`         | column           | `geom_col()`                  | —                                     |\n| `ranked_bar`     | column           | `geom_col()`                  | `vs`, `aim`, `char_scale`, `min_frac` |\n| `line`           | line / spline    | `geom_line()`                 | `smooth`, `dot_size`, `line_symbols`  |\n| `scatter`        | scatter          | `geom_point()`                | `dot_size`                            |\n| `arearange`      | arearange        | `geom_ribbon()`               | `ymin`, `ymax`                        |\n| `pie`            | pie              | `geom_bar()`, `coord_polar()` | `inner_size`                          |\n| `stacked_column` | column           | `geom_bar()`, `facet_wrap()`  | `stack`, `stacking`                   |\n\n\n---\n\nTo see complete list of extra arguments for specify geoms use `geom_args()` function:\n\n```r\ngeom_args(\"ranked_bar\")\ngeom_args(\"arearange\")\n```\n\n## License\n\nMIT © Kamaleri \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/folkehelsestats.github.io%2Fhighdir%2F","html_url":"https://awesome.ecosyste.ms/projects/folkehelsestats.github.io%2Fhighdir%2F","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/folkehelsestats.github.io%2Fhighdir%2F/lists"}