View source: R/save_surv_plot_EMR.R
save_surv_plot_EMR | R Documentation |
This function saves the output of survplot_eumelareg as a png file with a default resolution of 600dpi in a 12x8 in format.
save_surv_plot_EMR(
data,
time,
status,
var,
weights = NULL,
path,
width = 12,
height = 8,
...
)
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.