17 Commits

Author SHA1 Message Date
2f58378a5e Add comparison between sm and non-sm 2021-01-22 17:37:34 +01:00
10c5d78367 Revert "survival: Add median survial line in sm"
This reverts commit 798ebcea99cf40d2474600506efc1e516d5838e6.

The median survival line hides the only censored datapoint.
2021-01-22 12:36:10 +01:00
798ebcea99 survival: Add median survial line in sm 2021-01-22 12:33:23 +01:00
c012fc65fe plots: Change color palette
Change color palette to "lancet".
2021-01-18 01:58:03 +01:00
388e20673c survival: Add SM survival plot
Plot survival after SM diagnosis.
2021-01-17 15:27:15 +01:00
b08320bd3b survival/sma_plot_surv_asct: Adjust output
Change labels.
2021-01-17 11:36:21 +01:00
5e7b6007f1 Introduce initialization function
sma_init() can now be used to load all libraries and the data.
It is safe to call sma_init() multiple times. To forcefully reload the
data call sma_init_force().
2020-11-17 18:17:40 +01:00
95be046985 survival: Add plots per diagnosis
This adds survival curves per diagnosis. They still look a bit
overloaded.
2020-11-17 14:33:56 +01:00
3c160c37bb Set global break.time.by value for ggsurvplot
Substitute manual "break.time.by" values with global which can be used
by all plots.
2020-11-17 14:32:59 +01:00
c0c890c78c survival: Improve plots
Display a risk table, median survival line and adjust theme.
2020-11-17 13:28:06 +01:00
12ffcd4e38 survival: Change plot function to ggsurvplot
This will create the plot using the ggsurvplot from "survminer" package.
survminer user ggplot for plotting and comes with some powerful and nice
looking features.
2020-11-17 12:58:51 +01:00
b5634b7f8f survival: Remove excessive newlines 2020-11-16 22:52:14 +01:00
c3fecc1bf0 survival: Create functions for plots
Each plot has now its own function. This makes it easier to adjust the
creation and tweaking of a single plot. sma_plot_file() will now call
the individual plot function before saveing the plot.
2020-11-16 22:38:07 +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
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
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