Plot function pour robber class

# S3 method for robber
plot(x, type = "function", add = FALSE, ...)

Arguments

x

An object of class robber

type

Type of the plot, just function

add

Whether it should be added to a previous ggplot

...

lty, col, ... to be passed to geom_step() in ggplot2

Value

A ggplot2 object

Examples

data("hostparasite", package = "robber")
rob <- robustness_emp(hostparasite)
plot(rob)
#> Registered S3 method overwritten by 'lava':
#>   method            from      
#>   print.equivalence partitions