Skip to contents

Create confidence and prediction interval plots

Usage

tl_plot_intervals(model, new_data = NULL, level = 0.95, ...)

Arguments

model

A tidylearn regression model object

new_data

Optional data frame for prediction (if NULL, uses training data)

level

Confidence level (default: 0.95)

...

Additional arguments

Value

A ggplot object.

Examples

# \donttest{
model <- tl_model(mtcars, mpg ~ wt, method = "linear")
tl_plot_intervals(model)

# }