Learn R Programming

lares (version 4.4)

mplot_full: MPLOTS Score Full Report Plots

Description

This function plots a whole dashboard with a model's results. It will automatically detect if it's a categorical or regression's model by checking how many different unique values the independent variable (tag) has.

Usage

mplot_full(tag, score, splits = 8, thresh = 5, subtitle = NA,
  model_name = NA, save = FALSE, subdir = NA,
  file_name = "viz_full.png")

Arguments

tag

Vector. Real known label

score

Vector. Predicted value or model's result

splits

Integer. Numer of separations to plot

thresh

Integer. Threshold for selecting binary or regression models: this number is the threshold of unique values we should have in 'tag' (more than: regression; less than: classification)

subtitle

Character. Subitle to show in plot

model_name

Character. Model's name

save

Boolean. Save output plot into working directory

subdir

Character. Sub directory on which you wish to save the plot

file_name

Character. File name as you wish to save the plot