Skip to contents

Draws AUC(t) from a gg_auct() object: a line over time, a bootstrap confidence ribbon when available, and a dashed reference line at 0.5 (chance). The integrated AUC (iAUC) appears in the caption. Times with a non-finite AUC are dropped before drawing: from randomForestRHF 2.0.0 the final grid time can be NA, where the censoring-weight denominator is undefined once the control set is nearly exhausted.

Usage

# S3 method for class 'gg_auct'
plot(x, ...)

Arguments

x

A gg_auct object from gg_auct().

...

Not currently used.

Value

A ggplot object.

See also

Examples

# \donttest{
if (requireNamespace("randomForestRHF", quietly = TRUE)) {
  data(pbc, package = "randomForestSRC")
  d <- randomForestRHF::convert.counting(
    survival::Surv(days, status) ~ ., na.omit(pbc))
  o <- randomForestRHF::rhf("Surv(id, start, stop, event) ~ .", d, ntree = 30)
  plot(gg_auct(o))
}

# }