plot_numeric_res_pred {shinymodels}R Documentation

Visualizing residuals vs. predicted values for a regression model

Description

This function plots the predicted values against the residuals based on tidymodels results for a regression model.

Usage

plot_numeric_res_pred(dat, y_name, size = 1, source = NULL)

Arguments

dat

The predictions data frame in the organize_data() result. Following variables are required: .outcome, .pred, .color, and .hover.

y_name

The y/response variable for the model.

size

The size for the geom points.

source

A character string of length 1 that matches the source argument in event_data().

Value

A plotly::ggplotly() object.


[Package shinymodels version 0.1.1 Index]