Skip to contents

plot.damaging() plots S3 damaging objects with calls to some lower levels plot facilities.

Usage

# S3 method for class 'damaging'
plot(
  x,
  d_select = getOption("floodam_building_d_select"),
  h_range = NULL,
  d_range = NULL,
  name = NULL,
  path = NULL,
  file_name = "damaging",
  option = c("all", "map"),
  screen_nav = NULL,
  ...
)

Arguments

x

object of class damaging (list of arrays giving simple damaging function)

d_select

selected values of durations where to make some focus. At list one value

h_range

height range for making the graphs. Default to NULL, and so analyzing dam

d_range

duration range for making the graphs. Default to NULL, and so analyzing dam

name

name of the damagig functions. Default to NULL, no title

path

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

file_name

name of the elementary component processed. Default to NULL, no title

option,

character, defines what type of damaging will be plotted. Two options: "all" or "map". Default to "map"

screen_nav

integer, managing screens for plot_mosaic()

...

a list of extra-parameters (unused)

Value

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

Examples


plot(adu_t[["damaging"]][["absolute"]], path = tempdir())
#> [1] "Damaging function saved in /tmp/RtmpaJW9id/damaging.pdf"
plot(adu_t[["damaging"]][["absolute"]], name = "adu_t", path = tempdir())
#> [1] "Damaging function saved in /tmp/RtmpaJW9id/damaging_adu_t.pdf"
plot(adu_t[["damaging"]][["absolute"]], option = "map", path = tempdir())
#> [1] "Total damaging function saved in /tmp/RtmpaJW9id/damaging_map.pdf"

# plot_mosaic(adu_t[["damaging"]][c("absolute", "surface")], path = tempdir())