get_outgrphs function

Get Risk and Survival Plots

Get Risk and Survival Plots

This internal function obtains the risk and survival plots for gformula_survival.

get_outgrphs(x, risk, survival, xlab, ylab_risk, ylab_surv, ci_risk)

Arguments

  • x: Object of class "gformula_survival".
  • risk: Logical scalar indicating whether to include a plot for the risk.
  • survival: Logical scalar indicating whether to include a plot for the survival.
  • xlab: Character string for the x axes of all plots.
  • ylab_risk: Character string for the y axis of the plot for the risk (if applicable).
  • ylab_surv: Character string for the y axis of the plot for the survival (if applicable).
  • ci_risk: Logical scalar specifying whether to include error bars for the 95% confidence intervals of the estimated risk under the natural course. This argument is only effective if the argument nsamples was set to a positive value in gformula_survival.

Returns

A list of plots for the risk and survival.