Code usage"

knitr::opts_chunk$set(echo = TRUE)
knitr::opts_chunk$set(dev = "png", dev.args = list(type = "cairo-png"))

Convention

Purpose of groups of functions in the package:

Variables:

Example of use

library(HaDeX2)
library(magrittr)

Read data file

dat <- read_hdx(system.file(package = "HaDeX2", "HaDeX/data/alpha.csv"))

Different forms of visualization

Create data frame with uptake values for state in all time points:

uptake_dat <- create_state_uptake_dataset(dat)

Butterfly:

plot_butterfly(uptake_dat)

Chiclet:

plot_chiclet(uptake_dat)


Try the HaDeX2 package in your browser

Any scripts or data that you put into this service are public.

HaDeX2 documentation built on Feb. 9, 2026, 5:07 p.m.