Skip to contents

Plots the ranking metrics of a cpaic_ranks() hierarchy. Ranking metrics depend on the set being ranked, so read them alongside the relative effects, never instead of them.

Usage

# S3 method for class 'cpaic_ranks'
plot(x, y, ..., metric = c("sucra", "mean_rank", "median_rank", "p_best"))

Arguments

x

A cpaic_ranks object from cpaic_ranks().

y

Unused, for compatibility with the plot() generic.

...

Unused.

metric

Which metric to plot: "sucra" (default), "mean_rank", "median_rank", or "p_best".

Value

A ggplot object.

Examples

if (FALSE) {
plot(cpaic_ranks(fit, newdata = data.frame(x1 = 0)))
}