save_surv_plot_EMR: Save survival plot generated with survplot_eumelareg as png

View source: R/save_surv_plot_EMR.R

save_surv_plot_EMRR Documentation

Save survival plot generated with survplot_eumelareg as png

Description

This function saves the output of survplot_eumelareg as a png file with a default resolution of 600dpi in a 12x8 in format.

Usage

save_surv_plot_EMR(
  data,
  time,
  status,
  var,
  weights = NULL,
  path,
  width = 12,
  height = 8,
  ...
)

Arguments

data

data.frame or data.table 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.

weights

character variable specifying the name of the weights column. Weights have to be added to the original dataframe in order to be applied correctly.

path

path where the files should be saved

width

width of the png file in inches

height

height of the png file in inches

...

additional arguments to be passed on to survplot_eumelareg() function


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