Skip to contents

Creates a base R plot showing prediction intervals. Points are ordered by predicted value, with intervals shown as vertical segments.

Usage

# S3 method for class 'predictset_reg'
plot(x, max_points = 200, ...)

Arguments

x

A predictset_reg object.

max_points

Maximum number of points to display. Default 200. If there are more predictions, a random subset is shown.

...

Additional arguments passed to plot().

Value

The input object, invisibly.

Examples

set.seed(42)
x <- matrix(rnorm(200 * 3), ncol = 3)
y <- x[, 1] * 2 + rnorm(200)
x_new <- matrix(rnorm(50 * 3), ncol = 3)

result <- conformal_split(x, y, model = y ~ ., x_new = x_new)
plot(result)