Learn R Programming

ggfortify (version 0.4.17)

autoplot.aareg: Autoplot survival::aareg

Description

Autoplot survival::aareg

Usage

# S3 method for aareg
autoplot(
  object,
  maxtime = NULL,
  surv.connect = TRUE,
  facets = TRUE,
  ncol = NULL,
  xlab = "",
  ylab = "",
  ...
)

Value

ggplot

Arguments

object

survival::aareg instance

maxtime

truncate the input to the model at time "maxtime"

surv.connect

logical frag indicates whether connects survival curve to the origin

facets

Logical value to specify use facets

ncol

Number of facet/subplot columns

xlab

character vector or expression for x axis label

ylab

character vector or expression for y axis label

...

other arguments passed to autoplot.survfit

Examples

Run this code
if (FALSE) {
if (requireNamespace("survival", quietly = TRUE)) {
  autoplot(aareg(Surv(time, status) ~ age + sex + ph.ecog, data = lung, nmin = 1))
}
}

Run the code above in your browser using DataLab