Format outdata for interactive forest plot
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,
prop_range = NULL,
diff_range = NULL,
color = NULL,
ae_col_header = NULL,
diff_label = "Treatment <- Favor -> Placebo",
diff_col_header = NULL,
diff_fig_header = NULL
)An outdata object.
An outdata object created by prepare_ae_forestly().
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.
A number of digits after decimal point to be displayed for proportion and risk difference.
Width in px for AE term column.
Width in px for proportion and risk difference figure.
Width in px for "N" columns.
Width in px for "(%)" columns.
Width in px for risk difference columns.
Space in px for footer to display legend.
A vector of lower and upper limit of x-axis for proportion figure.
A vector of lower and upper limit of x-axis for risk difference figure.
A vector of colors for analysis groups. Default value supports up to 4 groups.
Column header for adverse events item columns.
If NULL (default) and "par" specified in components from prepare_ae_forestly(), uses "Adverse Event".
If NULL and "soc" specified in components from prepare_ae_forestly(), uses "System Organ Class" for "soc".
x-axis label for risk difference.
Column header for risk difference table columns.
If NULL (default), uses "Risk Difference (%)
vs. Reference Group".
Column header for risk difference figure.
If NULL (default), uses "Risk Difference (%) + 95% CI
vs. Reference Group".
adsl <- forestly_adsl[1:100, ]
adae <- forestly_adae[1:100, ]
meta_forestly(
dataset_adsl = adsl,
dataset_adae = adae
) |>
prepare_ae_forestly() |>
format_ae_forestly()
Run the code above in your browser using DataLab