create_base_plot.RdCreate base ggplot for survival curves
create_base_plot(
df,
type,
xlab = "Time",
ylab = "Survival Probability",
multiple_lines,
plot.event = 1,
event = "col",
lsize = 0.5,
fsize,
col,
linetype = NULL,
legend.pos = "bottom",
legend.title = NULL,
times,
ylim = c(0, 1),
xlim = NULL,
main = NULL
)Plotting dataframe
Plot type ("KM" or "CIF")
x axis label
y axis label
Whether multiple strata
Events to plot
How to distinguish events ("col" or "linetype")
Line size
Font size
colours vector
Line types vector
Legend position
Legend title
Time breaks
Y-axis limits
X-axis limits
Plot title