insightsengineering / tern

Table, Listings, and Graphs (TLG) library for common outputs used in clinical trials
https://insightsengineering.github.io/tern/
Other
77 stars 22 forks source link

[Bug]: g_lineplot table CI rowname does not update #1209

Closed pascalbartschi closed 8 months ago

pascalbartschi commented 8 months ago

What happened?

Thanks to one of the examples you provide in the g_lineplot documentation I was able to identify the bug that CI rowname do not update when the CI is custumized. The issue is only with the rowname itself, the value update in the table is implemented correctly.

Please check with the following example, the rowname will remain 95%. (Might be hardcoded but idk)

g_lineplot(
  adlb,
  adsl,
  table = c("n", "mean", "mean_ci"),
  control = control_analyze_vars(conf_level = 0.90),
  title
)

sessionInfo()

version 4.3.0 (2023-04-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Fedora 33 (Container Image)

Matrix products: default
BLAS/LAPACK: /apps/rocs/2020.08/cascadelake/software/OpenBLAS/0.3.9-GCC-9.3.0/lib/libopenblas_skylakexp-r0.3.9.so;  LAPACK version 3.9.0

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8     LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                  LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

time zone: Europe/Zurich
tzcode source: system (glibc)

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] tern_0.9.3       rtables_0.6.6    magrittr_2.0.3   formatters_0.5.5 nestcolor_0.1.2 

loaded via a namespace (and not attached):
 [1] Matrix_1.5-4        gtable_0.3.3        crayon_1.5.2        dplyr_1.1.2         compiler_4.3.0      BiocManager_1.30.20 tidyselect_1.2.0    tidyr_1.3.0        
 [9] splines_4.3.0       scales_1.2.1        yaml_2.3.7          fastmap_1.1.1       lattice_0.21-8      ggplot2_3.4.2       R6_2.5.1            labeling_0.4.2     
[17] generics_0.1.3      knitr_1.42          rbibutils_2.2.13    backports_1.4.1     forcats_1.0.0       checkmate_2.2.0     tibble_3.2.1        munsell_0.5.0      
[25] pillar_1.9.0        rlang_1.1.1         utf8_1.2.3          broom_1.0.4         xfun_0.39           cli_3.6.1           withr_2.5.0         Rdpack_2.4         
[33] digest_0.6.31       grid_4.3.0          rstudioapi_0.14     cowplot_1.1.1       lifecycle_1.0.3     vctrs_0.6.2         evaluate_0.21       glue_1.6.2         
[41] farver_2.1.1        survival_3.5-3      fansi_1.0.4         colorspace_2.1-0    purrr_1.0.1         rmarkdown_2.21      tools_4.3.0         pkgconfig_2.0.3    
[49] htmltools_0.5.5

Relevant log output

No response

Code of Conduct

Contribution Guidelines

Security Policy