Skip to contents

Format outdata for interactive forest plot

Usage

format_ae_forestly(
  outdata,
  display = c("n", "prop", "fig_prop", "fig_diff"),
  digits = 1,
  width_term = 200,
  width_fig = 320,
  width_n = 40,
  width_prop = 60,
  width_diff = 80,
  footer_space = 90,
  color = NULL,
  diff_label = "Treatment <- Favor -> Placebo",
  show_ae_parameter = FALSE
)

Arguments

outdata

an outdata object created from prepare_ae_forestly.

display

a character vector of measurement to be displayed.

  • n: number of subjects with AE.

  • prop: proportion of subjects with AE.

  • total: total columns

  • diff: risk difference

digits

a value of digits to be displyed for proportion and risk difference.

width_term

width in px for AE term column

width_fig

width in px for proprtion and risk difference figure

width_n

width in px for 'N' columns

width_prop

width in px for "(%) columns

width_diff

width in px for risk difference columns

footer_space

space in px for footer to display legend

color

a vector of color for analysis groups. Default value support up to 4 groups.

diff_label

x-axis label for risk difference

show_ae_parameter

a boolean value to display AE parameter column