Skip to contents

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

Usage

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

Arguments

x

array 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 simple 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 "all"

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


temp = adu_t[["damaging"]][["absolute"]]

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(temp, path = tempdir())
#> [1] "Damaging function saved in /tmp/RtmpaJW9id/mosaic.pdf"
class(temp) = NULL
plot_mosaic(temp, path = tempdir())
#> [1] "Mosaic plot saved in /tmp/RtmpaJW9id/mosaic.pdf"
plot_mosaic(temp, name = "absolute", path = tempdir())
#> [1] "Mosaic plot saved in /tmp/RtmpaJW9id/mosaic.pdf"