tof_plot_model_logistic: Plot the results of a two-class glmnet model fit on...

View source: R/visualization.R

tof_plot_model_logisticR Documentation

Plot the results of a two-class glmnet model fit on sample-level data.

Description

Plot the results of a two-class glmnet model fit on sample-level data.

Usage

tof_plot_model_logistic(tof_model, new_data, theme = ggplot2::theme_bw())

Arguments

tof_model

A 'tof_model' trained using tof_train_model

new_data

A tibble of new observations for which a plot should be made. If new_data isn't provided, the plot will be made using the training data used to fit the model. Alternatively, the string "tuning_data" can be provided, and the plot will be generated using the predictions generated during model tuning.

theme

A ggplot2 theme to apply to the plot. Defaults to theme_bw

Value

A ggplot object. Specifically, an ROC curve..


keyes-timothy/tidytof documentation built on May 7, 2024, 12:33 p.m.