• Flow Chart creation

Last updated: 2023-03-11

Checks: 6 1

Knit directory: paperscripts/

This reproducible R Markdown analysis was created with workflowr (version 1.7.0). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.


The R Markdown file has unstaged changes. To know which version of the R Markdown file created these results, you’ll want to first commit it to the Git repo. If you’re still working on the analysis, you can ignore this warning. When you’re finished, you can run wflow_publish to commit the R Markdown file and build the HTML.

Great job! The global environment was empty. Objects defined in the global environment can affect the analysis in your R Markdown file in unknown ways. For reproduciblity it’s best to always run the code in an empty environment.

The command set.seed(20230311) was run prior to running the code in the R Markdown file. Setting a seed ensures that any results that rely on randomness, e.g. subsampling or permutations, are reproducible.

Great job! Recording the operating system, R version, and package versions is critical for reproducibility.

Nice! There were no cached chunks for this analysis, so you can be confident that you successfully produced the results during this run.

Great job! Using relative paths to the files within your workflowr project makes it easier to run your code on other machines.

Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.

The results in this page were generated with repository version d644082. See the Past versions tab to see a history of the changes made to the R Markdown and HTML files.

Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish or wflow_git_commit). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:


Unstaged changes:
    Modified:   analysis/flowcharts.Rmd

Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.


These are the previous versions of the repository in which changes were made to the R Markdown (analysis/flowcharts.Rmd) and HTML (docs/flowcharts.html) files. If you’ve configured a remote Git repository (see ?wflow_git_remote), click on the hyperlinks in the table below to view the files as they were in that past version.

File Version Author Date Message
Rmd d644082 Your Name 2023-03-11 Update
html d644082 Your Name 2023-03-11 Update

Flow Chart creation

── Attaching packages ──────────────────────────────────────── khsverse 0.0.2 ──
✔ dplyr    1.0.10     ✔ broom    1.0.1 
✔ tidyr    1.2.1      ✔ labelled 2.10.0
✔ tibble   3.1.8      ✔ readxl   1.4.1 
✔ forcats  0.5.2      ✔ survival 3.4.0 
✔ readr    2.1.2      ✔ cowplot  1.1.1 
✔ purrr    0.3.5      ✔ viridis  0.6.2 
✔ stringr  1.4.1      ✔ gt       0.8.0 
✔ ggplot2  3.4.1      ✔ risks    0.4.1 
── Conflicts ─────────────────────────────────────────── khsverse_conflicts() ──
✖ dplyr::filter()    masks stats::filter()
✖ dplyr::lag()       masks stats::lag()
✖ gt::tab_footnote() masks khsmisc::tab_footnote()
✖ gt::tab_style()    masks khsmisc::tab_style()
flowchart tab1a Study base n = 502485 tab1b Lack quality-controlled genotypes for risk score generation n = 15209 tab1a->tab1b tab2a Polygenic score and Phenotypic information n = 487276 tab1a->tab2a tab2b Participants with missing baseline covariate information (smoking, anti-hypertensive use, race, and sex) n = 34635 tab2a->tab2b tab3a With baseline information n = 452641 tab2a->tab3a tab3b Missing Lipid information n = 59069 tab3a->tab3b tab4a With Lipid information n = 393572 tab3a->tab4a tab4b On Statin therapy n = 63832 tab4a->tab4b tab5a Polygenic score and Phenotypic information off statin therapy n = 329740 tab4a->tab5a tab5b Remains with coronary artery disease n = 1903 tab5a->tab5b tab6a Complete-case set n = 327837 tab5a->tab6a
flowchart tab1a Study base with Outcome Data n = 3821 tab1b Lack Total Cholesterol, HDL, Smoking, Systolic or Blood Pressure Information at baseline n = 154 tab1a->tab1b tab2a Contain All Covariates n = 3660 tab1a->tab2a tab2b On Statin at Baseline n = 21 tab2a->tab2b tab3a Contain All Covariates and Statin-free n = 3639 tab2a->tab3a tab3b With CAD at baseline n = 51 tab3a->tab3b tab4a With baseline covariate and outcome data n = 3588 tab3a->tab4a tab4b Missing PRS Info n = 959 tab4a->tab4b tab5a PRS, Pheno, Covariate info n = 2629 tab4a->tab5a

sessionInfo()
R version 4.2.1 (2022-06-23)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur ... 10.16

Matrix products: default
BLAS:   /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

other attached packages:
 [1] risks_0.4.1       gt_0.8.0          viridis_0.6.2     viridisLite_0.4.1
 [5] cowplot_1.1.1     survival_3.4-0    readxl_1.4.1      labelled_2.10.0  
 [9] broom_1.0.1       ggplot2_3.4.1     stringr_1.4.1     purrr_0.3.5      
[13] readr_2.1.2       forcats_0.5.2     tibble_3.1.8      tidyr_1.2.1      
[17] dplyr_1.0.10      khsverse_0.0.2    khsmisc_0.4.6    

loaded via a namespace (and not attached):
 [1] fs_1.5.2             lubridate_1.8.0      RColorBrewer_1.1-3  
 [4] httr_1.4.4           rprojroot_2.0.3      tools_4.2.1         
 [7] backports_1.4.1      bslib_0.4.0          utf8_1.2.2          
[10] R6_2.5.1             DBI_1.1.3            colorspace_2.0-3    
[13] withr_2.5.0          tidyselect_1.2.0     gridExtra_2.3       
[16] compiler_4.2.1       git2r_0.30.1         cli_3.4.1           
[19] rvest_1.0.3          xml2_1.3.3           sass_0.4.2          
[22] scales_1.2.1         digest_0.6.29        rmarkdown_2.17      
[25] pkgconfig_2.0.3      htmltools_0.5.3      dbplyr_2.2.1        
[28] fastmap_1.1.0        htmlwidgets_1.5.4    rlang_1.0.6         
[31] rstudioapi_0.14      visNetwork_2.1.2     jquerylib_0.1.4     
[34] generics_0.1.3       jsonlite_1.8.2       googlesheets4_1.0.1 
[37] magrittr_2.0.3       Matrix_1.5-1         Rcpp_1.0.9          
[40] munsell_0.5.0        fansi_1.0.3          lifecycle_1.0.3     
[43] stringi_1.7.8        whisker_0.4          yaml_2.3.5          
[46] gtsummary_1.7.0      grid_4.2.1           promises_1.2.0.1    
[49] crayon_1.5.2         lattice_0.20-45      haven_2.5.1         
[52] splines_4.2.1        hms_1.1.2            knitr_1.40          
[55] pillar_1.8.1         reprex_2.0.2         glue_1.6.2          
[58] evaluate_0.17        broom.helpers_1.12.0 modelr_0.1.9        
[61] vctrs_0.5.2          tzdb_0.3.0           httpuv_1.6.6        
[64] cellranger_1.1.0     gtable_0.3.1         assertthat_0.2.1    
[67] cachem_1.0.6         xfun_0.33            tidyverse_1.3.2     
[70] later_1.3.0          googledrive_2.0.0    gargle_1.2.0        
[73] workflowr_1.7.0      DiagrammeR_1.0.9     ellipsis_0.3.2