13 Commits

Author SHA1 Message Date
3dce8a4ea6 Merge branch 'load-function'
* load-function:
  README: List tidyverse as used package
  survival: Use new data load function
  utils: Add sma_load_data()
2020-11-16 12:40:26 +01:00
d87d3143c2 README: List tidyverse as used package
Add 'tidyverse' to used package list in README.
2020-11-16 12:37:41 +01:00
27579452c3 survival: Use new data load function
Load the data with the new introduced function sma_load_data().
2020-11-16 12:27:35 +01:00
f919a31527 utils: Add sma_load_data()
This function loads the data and adjust some wrong column types. It
shoulb be used from all other scripts to load the data. It the same
source data for all following calculations.
The data is stored inside a 'tibble' from the 'tidyverse' package.
2020-11-16 12:24:20 +01:00
fdd17c0c71 Merge branch 'plot-function'
* plot-function:
  utils: Hide garbage output from dev.off()
  survival: Replace manual plotting with sma_plot_file
  Introduce plot to file function
2020-11-03 16:57:42 +01:00
815731cbcf utils: Hide garbage output from dev.off()
dev.off() prints not usefull messages like "null device 1" when
finishing. This supresses these messages.
2020-11-03 16:55:29 +01:00
439810a544 survival: Replace manual plotting with sma_plot_file
Replace the manual plotting definitions with the new function to reduce
repitition.
2020-10-22 18:46:30 +02:00
a8c4b327a0 Introduce plot to file function
sma_plot_file(fname, ftype, title_list, legend_list, fun, ...)
can be used to write plot to a file.
It supports all output filetypes R can handle. Title and legend
arguments can be passed as lists.
All available plotting functions can be used, arguments go into a
variable argument list.
2020-10-22 18:29:13 +02:00
fffd300955 .gitignore: Add csv files
Ignore all csv files.
2020-10-22 16:41:51 +02:00
42aec82e36 survival: Change scaling to days per year
The base data was changed from month to years for more precision.
Therefor the scaling of the graphs must be adjusted to days per year
instead of month per year.
2020-10-22 16:38:39 +02:00
e4cead5e99 First version of survival calculation
This adds a R script which calculates the survival starting at diagnosis
and autologous stem cell therapy.
2020-09-03 17:18:06 +02:00
1c778896f0 Add .gitignore
Ignore R specific data and generated graphs.
2020-09-03 16:38:29 +02:00
735d67d730 Initial commit 2020-09-03 11:36:11 +02:00