plot_numeric_res_factorcol: Visualizing residuals vs. a factor column for a regression...

Description Usage Arguments Value

View source: R/regression_diag_plots.R

Description

This function plots the residuals against a factor column based on tidymodels results for a regression model.

Usage

1
2
3
4
5
6
7
8
plot_numeric_res_factorcol(
  dat,
  y_name,
  factorcol,
  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.

factorcol

The factor column to plot against the residuals.

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 Nov. 18, 2021, 1:12 a.m.