Return N count in plot legend (treatment)
Arguments
- datain
Input dataframe for display
- mentry_data
Input data from
mentry()
- bignyn
Display count "(N = )" along with Treatment in plot legend? Values: "Y"/"N"
Examples
data(adsl)
adsl_entry <- adsl |>
mentry(
trtvar = "TRT01A",
trtsort = "TRT01AN",
trttotalyn = "N",
add_grpmiss = "N",
pop_fil = "SAFFL"
)
msumstat(
adsl_entry,
dptvar = "AGE",
statvar = "mean"
)$gsum |>
plot_display_bign(adsl_entry)
#> msum success
#> # A tibble: 3 × 6
#> TRTVAR mean DPTVAR CN DPTVARN TRTTXT
#> <ord> <chr> <chr> <chr> <dbl> <fct>
#> 1 Placebo 75.21 AGE N 1 Placebo (N=86)
#> 2 Xanomeline Low Dose 75.67 AGE N 1 Xanomeline Low Dose (N=84)
#> 3 Xanomeline High Dose 74.38 AGE N 1 Xanomeline High Dose (N=84)