Package: highdir 0.6.0

Yusman Kamaleri

highdir: Backend-Agnostic Figure Builder for 'highcharter' and 'ggplot2'

Provides a backend-agnostic 'API' for creating data visualizations using 'highcharter' (interactive) or 'ggplot2' (static). Figures are defined once via a specification object and can be rendered to either backend without modifying the calling code. Supports both declarative and layered workflows, flexible theming and colour palettes, optional 'JavaScript' enhancements, and tools for exporting figures and interactive exploration via a 'shiny' app.

Authors:Yusman Kamaleri [aut, cre]

highdir_0.6.0.tar.gz
highdir_0.6.0.zip(r-4.7)highdir_0.6.0.zip(r-4.6)highdir_0.6.0.zip(r-4.5)
highdir_0.6.0.tgz(r-4.6-any)highdir_0.6.0.tgz(r-4.5-any)
highdir_0.6.0.tar.gz(r-4.7-any)highdir_0.6.0.tar.gz(r-4.6-any)
highdir_0.6.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
highdir/json (API)

# Install 'highdir' in R:
install.packages('highdir', repos = c('https://folkehelsestats.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/folkehelsestats/highdir/issues

Pkgdown/docs site:https://folkehelsestats.github.io

Datasets:
  • alco1 - Alcohol Consumption Data
  • alco2 - Alcohol Consumption by Gender

On CRAN:

Conda:

5.79 score 17 scripts 276 downloads 33 exports 80 dependencies

Last updated from:8099e95fb6. Checks:7 WARNING, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64WARNING171
source / vignettesOK250
linux-release-x86_64WARNING174
macos-release-arm64WARNING122
macos-oldrel-arm64WARNING121
windows-develWARNING101
windows-releaseWARNING107
windows-oldrelWARNING141
wasm-releaseOK142

Exports:geom_argsget_palettegg_themehdhd_add_jshd_apphd_geom_arearangehd_geom_columnhd_geom_linehd_geom_piehd_geom_ranked_barhd_geom_scatterhd_geom_stacked_columnhd_geom_vennhd_makehd_optshd_reset_themehd_savehd_set_themehd_spechd_spec_vennhd_themehd_venn_dfhd_venn_intersecthd_venn_sethd_venn_sets_from_speclist_backendslist_geomslist_palettesregister_backendregister_geomregister_palettevenn_df_to_list

Dependencies:assertthatbackportsbase64encbroombslibcachemclicommonmarkcpp11curldata.tabledigestdplyrevaluatefarverfastmapfontawesomefsgenericsggplot2gluegridExtragtablehighcharterhighrhtmltoolshtmlwidgetshttpuvigraphisobandjquerylibjsonliteknitrlabelinglaterlatticelifecyclelubridatemagrittrMatrixmemoisemimeotelpillarpkgconfigpromisespurrrquantmodR6rappdirsRColorBrewerRcpprjsonrlangrlistrmarkdownS7sassscalesshinysourcetoolsstringistringrtibbletidyrtidyselecttimechangetinytexTTRutf8vctrsviridisviridisLitewithrxfunXMLxtablextsyamlzoo

Accessibility: writing descriptions for figures
Why accessibility descriptions matter | Example data | Highcharter: how description is delivered | Saving to HTML and JSON: what is preserved | HTML (hd_save(fig, "file.html")) | JSON (hd_save(fig, "file.json")) | ggplot2 — which output formats carry the description | Writing good descriptions

Last update: 2026-07-21
Started: 2026-03-25

Geom examples
Column chart | Interactive figure | Static figure | Column with groups | Line chart | Static | Ranked bar chart | Arearange chart | Interactive | Pie chart | Donut | Solid pie | Stacked column chart | Reusing a spec across geoms | Reusing opts across languages | Theming | Saving figures

Last update: 2026-07-21
Started: 2026-03-19

Quick start
Declarative API | Layered API | Geom

Last update: 2026-07-21
Started: 2026-03-14

Specifications
Types | 1. hd_spec() | 2. hd_opts() | 3. Required Specifications | 4. Optional Specifications | Theming | JavaScript injection

Last update: 2026-03-25
Started: 2026-03-17

Readme and manuals

Help Manual

Help pageTopics
Add Layers to an hd Object+.hd
Alcohol Consumption Dataalco1
Alcohol Consumption by Genderalco2
Show Arguments for a Geometrygeom_args
Retrieve a Named Paletteget_palette
Build a ggplot2 Theme Objectgg_theme
Initialise a Composable highdir Figurehd
Inject JavaScript into a Highcharts Widgethd_add_js
Launch the highdir Shiny GUIhd_app
Add an Arearange (Confidence Band) Layerhd_geom_arearange
Column Geometry Layer for hd Objectshd_geom_column
Line Geometry Layer for hd Objectshd_geom_line
Pie Geometry Layer for hd Objectshd_geom_pie
Ranked bar geometryhd_geom_ranked_bar
Scatter Geometry Layer for hd Objectshd_geom_scatter
Stacked Column Geometry Layerhd_geom_stacked_column
Venn / Euler Diagram Layer for hd Objectshd_geom_venn
Build a Figure from a Specificationhd_make
Create Figure Presentation Optionshd_opts
Reset Themehd_reset_theme
Save a Figure to Diskhd_save
Set Package-Wide Style Defaultshd_set_theme
Create a Figure Data Specificationhd_spec
Create a Venn / Euler Figure Specificationhd_spec_venn
Build a Highcharts Theme Objecthd_theme
Create a Venn Diagram Directly from a Data Framehd_venn_df
Build an Intersection Entry for hd_geom_vennhd_venn_intersect
Build a Single-Set Entry for hd_geom_vennhd_venn_set
Extract the Set List from an hd_spec_venn Objecthd_venn_sets_from_spec
List Registered Backendslist_backends
List Registered Geometrieslist_geoms
List Registered Paletteslist_palettes
Render an hd Objectprint.hd
Register a Rendering Backend and used when loding in zzz.R fileregister_backend
Register a Geometryregister_geom
Register a Named Colour Paletteregister_palette
Convert a Data Frame to a Venn Set Listvenn_df_to_list