It seems that calling library() within a function may fail silently. Moving them out of the function at the beginning of utils.R fixes this. One particular place, where all necessary libraries are loaded, seem to be a much easier way than inside a function.
secMalASCT statistical analysis
How to run
- Clone the repository
- Open R and source one of the R files
survival.R
Source this file and call one of the plot functions to show plot in R.
sma_plot_file_surv() will save all plots to files.
secmal.R
This file contains the secondary malignancy plots. You can call the
functions in R or sma_plot_file_secmal() to save them to files.
plots.R
Special script to generate all plots and save them in files.
Run with Rscript plots.R
Dependencies
- git
- R
R packages used
- tidyverse
- survival
- survminer
Description