plot.coxex: Plot a coxex object.

View source: R/oop_coxex.R

plot.coxexR Documentation

Plot a coxex object.

Description

Plots a coxex object: diagnostic graphs of residuals (type = 'residuals') or outcome vs fitted Kaplan-Meier plot ('fit').

Usage

## S3 method for class 'coxex'
plot(
  x,
  type = c("fit", "residuals"),
  cust_theme = survminer::theme_survminer(),
  ...
)

Arguments

x

a coxex object.

type

type of the plots, 'fit' by default.

cust_theme

customized plot theme provided by the user.

...

extra arguments passed to get_cox_qc_plots or plot_cox_fit.

Value

a ggplot or a list of ggplot residual plots.


PiotrTymoszuk/coxExtensions documentation built on Feb. 6, 2024, 10:58 p.m.