Load the package hce
and check the version
For citing the package run citation("hce")
(Gasparyan 2024).
The maraca plot (named after its visual similarity to its namesake musical instrument) has been recently introduced (Karpefors, Lindholm, and Gasparyan 2023) for visualization of HCEs which combine multiple dichotomous outcomes with a single continuous endpoint. The maraca plot visualizes the contribution of components of a hierarchical composite endpoint (HCE) over time. It is formed by end-to-end adjoining, from left to right by declining severity of uniformly scaled Kaplan–Meier plots of times to each dichotomous outcome among those without more severe outcomes, with superimposed box/violin plot of the continuous outcome.
The maraca plot is implemented in the package Martin Karpefors, Samvel B. Gasparyan, and Monika Huhn
(2023) which depends on the package hce
. The maraca
package has a plot.hce()
method to visualize objects of the
type hce
. Consider the following example.