plot.rfmstate_diag: Plot Diagnostics

View source: R/plot.R

plot.rfmstate_diagR Documentation

Plot Diagnostics

Description

Visualizes genuine edge OOB concordance or patient-level cross-validated full-state Brier scores.

Usage

## S3 method for class 'rfmstate_diag'
plot(
  x,
  type = c("brier", "concordance"),
  col = NULL,
  main = NULL,
  xlab = NULL,
  ylab = NULL,
  ...
)

Arguments

x

An rfmstate_diag object.

type

Character, one of "brier" (default), "concordance".

col

One or more plot colors; recycled when necessary.

main

Title.

xlab, ylab

Axis labels.

...

Additional arguments.

Value

The input x object, returned invisibly. Called for its side effect of producing a plot.

Limitations

Concordance plots contain separate edge-level ranger OOB statistics, not assembled full-state validation. Brier plots require an object produced by diagnose(..., method = "cv") and inherit its censoring/support limitations. No bias–variance plot is available.

Examples

d <- structure(list(
  concordance = data.frame(transition = "A->B", c_index = 0.7),
  brier = NULL
), class = "rfmstate_diag")
plot(d, type = "concordance", xlab = "Edge", ylab = "OOB C-index")


RFmstate documentation built on Sept. 10, 2026, 1:09 a.m.