save_surv_plot_eumelareg: Save survival curve generated with 'survplot_eumelareg'

View source: R/save_surv_plot_eumelareg.R

save_surv_plot_eumelaregR Documentation

Save survival curve generated with survplot_eumelareg

Description

This function saves a default EuMelaReg survival plot (Kaplan-Meier plot) produced with survminer.

Usage

save_surv_plot_eumelareg(
  data,
  time,
  status,
  var,
  legend.labs = NULL,
  regID = "REGISTR",
  registry = "EUMELAREG",
  path = NULL,
  ...
)

Arguments

data

dataframe containing survival data.

time

The time interval from start of observation until date of event (e.g. disease progression or death) or censoring.

status

Variable specifying if event occured or data has been censored.

var

Variable tested for Influence on outcome.

legend.labs

Character vector specifying legend labels. Used to replace the names of the strata from the fit.

regID

Name of column containing registry information. Default is "REGISTR" as defined by SAS output.

registry

Name of EuMelaReg registry. If registry = "EUMELAREG" data from all registries is plotted.

path

File path where the plot shall be stored. By default a folder "Results/survival_curve" is generated within the working directory and objects are stored in this subfolder.

...

Additional arguments passed to ggsurvplot.


MBender1992/emR documentation built on Feb. 18, 2025, 9:21 a.m.