Skip to contents

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

Usage

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

Arguments

x

array giving damaging function

d_select

selected values of durations where to make some focus, at least one value

h_range

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

d_range

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

name

name of the elementary component processed. 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

option on what is displayed ("all" or "map"). Default to "all"

screen_nav

integer, managing screens for plot_mosaic()

...

some extra parameters (unused)

Value

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

Examples


plot(DAM[[1]], path = tempdir())
#> [1] "Elementary damaging function saved in /tmp/RtmpaJW9id/elementary_damaging.pdf"
plot(DAM[[1]], option = "map", path = tempdir())
#> [1] "Map elementary damaging function saved in /tmp/RtmpaJW9id/elementary_damaging_map.pdf"
plot(DAM[[1]], name = names(DAM[1]), path = tempdir())
#> [1] "Elementary damaging function saved in /tmp/RtmpaJW9id/elementary_damaging_air_conditioner.pdf"
# plot.elementary_damaging(DAM[1], path = tempdir())

plot_mosaic(DAM[1:6], path = tempdir())
#> [1] "Mosaic plot saved in /tmp/RtmpaJW9id/mosaic.pdf"