plot_numeric_obs_pred: Visualizing observed vs. predicted values for a regression...

View source: R/regression_diag_plots.R

plot_numeric_obs_predR Documentation

Visualizing observed vs. predicted values for a regression model

Description

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

Usage

plot_numeric_obs_pred(dat, y_name, alpha = 1, 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.

alpha

The opacity for the geom points.

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.


shinymodels documentation built on May 29, 2024, 2:22 a.m.