Skip to contents

Plot the robust regression or explanation from slise in 2D

Usage

# S3 method for slise_2d
plot(slise, title = NULL, labels = NULL, partial = FALSE, size = 2, ...)

Arguments

slise

The slise object

title

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

labels

The axis labels (default: c("X", "Y") or c("x", "f(x)"))

partial

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

size

The size of the plot elements (default: 2)

...

Ignored parameters

Value

ggplot object or plot