format_ae_forestly {forestly} | R Documentation |
Format outdata for interactive forest plot
Description
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 |
display |
A character vector of measurement to be displayed.
|
digits |
A value of digits to be displayed for proportion and risk difference. |
width_term |
Width in px for AE term column. |
width_fig |
Width in px for proportion 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 colors for analysis groups. Default value supports up to 4 groups. |
diff_label |
x-axis label for risk difference. |
show_ae_parameter |
A boolean value to display AE parameter column. |
Value
An outdata
object.
Examples
adsl <- forestly_adsl[1:100,]
adae <- forestly_adae[1:100,]
meta_forestly(
dataset_adsl = adsl,
dataset_adae = adae
) |>
prepare_ae_forestly()|>
format_ae_forestly()
[Package forestly version 0.1.1 Index]