Skip to contents

plot.damage_function() overlays the reference damage curve with the simulated damage.

Usage

# S3 method for class 'damage_function'
plot(x, model, path = NULL, file_name = NULL, ...)

Arguments

x

a damage_function object returned by analyse_hydraulic() with the experiment_plan stage

model

an object of class model

path

character, path for saving the result. Default to NULL, nothing is saved, graph is displayed

file_name

character, optional output file name. The extension can be pdf, png, svg, or webp.

...

additional arguments accepted for compatibility with the generic plot() method. They are currently unused.

Value

A message to retrieve the file used to save the plot, if any.