Skip to contents

Plot the robust regression or explanation from slise as bar plots

Usage

# S3 method for slise_bar
plot(
  slise,
  title = NULL,
  labels = c("Low", "High"),
  partial = FALSE,
  size = 8,
  ...
)

Arguments

slise

The slise object

title

The title of the plot (may include a `%s`, which will be replaced by the prediction)

labels

The class labels (vector with two strings: c(y_low, y_high), default: c("Low", "High"))

partial

Should the raw ggplot2 objects be returned instead of directly plotting (default: FALSE)

size

The size of the segments (default: 8)

...

Ignored parameters

Value

List of ggplot objects or plot