insightsengineering / goshawk

Functions that plot and summarize biomarkers/labs of interest
https://insightsengineering.github.io/goshawk/
Other
5 stars 1 forks source link

line plot: error bars #246

Closed npaszty closed 5 months ago

npaszty commented 5 months ago

What happened?

without line plits variable selected the error bars are displayed.

image

with line plits variable selected the error bars are not displayed on all the lines. looks like no error bars for the M split line value but error bars for the F split line value.

image

same for in app plot as that which is generated by show R code.

sessionInfo()

> sessionInfo()
R version 4.3.1 (2023-06-16)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 22.04.3 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3 
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.20.so;  LAPACK version 3.10.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   
 [6] LC_MESSAGES=en_US.UTF-8    LC_PAPER=en_US.UTF-8       LC_NAME=C                  LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

time zone: Etc/UTC
tzcode source: system (glibc)

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

other attached packages:
 [1] tidyr_1.3.1                 teal.goshawk_0.1.15.9022    teal.modules.general_0.3.0  ggmosaic_0.3.3              ggplot2_3.5.0              
 [6] teal.modules.clinical_0.9.0 tern_0.9.3                  rtables_0.6.6               formatters_0.5.5            teal.transform_0.5.0       
[11] teal.connectors.rice_0.2.0  teal_0.15.2                 teal.slice_0.5.0            teal.data_0.5.0             teal.code_0.5.0            
[16] stringr_1.5.1               sparkline_2.0               ricepass_1.1.4              rice_3.0.1                  magrittr_2.0.3             
[21] goshawk_0.1.17.9001         dplyr_1.1.4                 googlesheets4_1.0.1         DescTools_0.99.54           shiny_1.8.1.1              

loaded via a namespace (and not attached):
  [1] rstudioapi_0.16.0     jsonlite_1.8.8        estimability_1.5      farver_2.1.1          rmarkdown_2.26        ragg_1.2.7           
  [7] geepack_1.3.10        fs_1.6.3              vctrs_0.6.5           memoise_2.0.1         askpass_1.2.0         htmltools_0.5.8.1    
 [13] forcats_1.0.0         curl_5.2.1            haven_2.5.4           broom_1.0.5           cellranger_1.1.0      sass_0.4.9           
 [19] bslib_0.7.0           htmlwidgets_1.6.4     fontawesome_0.5.2     emmeans_1.10.0        rootSolve_1.8.2.4     plotly_4.10.4        
 [25] cachem_1.0.8          mime_0.12             lifecycle_1.0.4       teal.widgets_0.4.2    pkgconfig_2.0.3       Matrix_1.6-1.1       
 [31] R6_2.5.1              fastmap_1.1.1         rbibutils_2.2.16      digest_0.6.35         Exact_3.2             ggnewscale_0.4.10    
 [37] colorspace_2.1-0      shinycssloaders_1.0.0 textshaping_0.3.7     crosstalk_1.2.1       labeling_0.4.3        fansi_1.0.6          
 [43] httr_1.4.7            compiler_4.3.1        gargle_1.2.1          proxy_0.4-27          withr_3.0.0           backports_1.4.1      
 [49] logger_0.3.0          MASS_7.3-60.0.1       openssl_2.1.1         gld_2.6.6             tools_4.3.1           robslopes_1.1.3      
 [55] googledrive_2.0.0     httpuv_1.6.15         shinyvalidate_0.1.3   glue_1.7.0            nlme_3.1-163          promises_1.2.1       
 [61] grid_4.3.1            rsconnect_1.2.2       getPass_0.2-4         checkmate_2.3.1       generics_0.1.3        gtable_0.3.4         
 [67] tzdb_0.4.0            class_7.3-22          data.table_1.15.4     lmom_3.0              hms_1.1.3             utf8_1.2.4           
 [73] ggrepel_0.9.5         pillar_1.9.0          later_1.3.2           splines_4.3.1         tern.gee_0.1.3        lattice_0.21-9       
 [79] renv_1.0.3            survival_3.5-7        tidyselect_1.2.1      knitr_1.45            teal.logger_0.2.0     xfun_0.43            
 [85] expm_0.999-9          DT_0.33               stringi_1.8.3         lazyeval_0.2.2        yaml_2.3.8            boot_1.3-29          
 [91] shinyWidgets_0.8.4    evaluate_0.23         tibble_3.2.1          cli_3.6.1             systemfonts_1.0.6     xtable_1.8-4         
 [97] Rdpack_2.6            munsell_0.5.1         jquerylib_0.1.4       Rcpp_1.0.12           teal.reporter_0.3.1   readxl_1.4.3         
[103] parallel_4.3.1        readr_2.1.5           assertthat_0.2.1      mcr_1.3.3             viridisLite_0.4.2     mvtnorm_1.2-4        
[109] scales_1.3.0          e1071_1.7-14          purrr_1.0.2           rlang_1.1.3           cowplot_1.1.3         shinyjs_2.1.0

Relevant log output

no error just missing error bars.

Code of Conduct

Contribution Guidelines

Security Policy

npaszty commented 5 months ago

actually I'm closing this as I think it's the data being too sparse. 😄