plot-report_df-missing-method: Different plots for report_df

plot,report_df,missing-methodR Documentation

Different plots for report_df

Description

  • plot.type=1A barplot of the operation time per month

  • plot.type=2Barchat giving the time per type of operation

  • plot.type=2Rectangle plots drawn along a line

  • plot.type=4Plots per day drawn over the period to show the operation of a df, days in x, hours in y

Usage

## S4 method for signature 'report_df,missing'
plot(
  x,
  plot.type = 1,
  silent = FALSE,
  main = NULL,
  color_type_oper = c(`Fonc normal` = "#1B9E77", `Arr ponctuel` = "#E6AB02",
    `Arr maint` = "#9E0142", Dysfonc = "#E41A1C", `Non connu` = "#999999"),
  color_etat = c(`TRUE` = "chartreuse3", `FALSE` = "orangered3")
)

Arguments

x

An object of class report_df-class.

plot.type

1 to 4.

silent

Stops displaying the messages.

main

The title of the graph, if NULL a default title will be plotted with the number of the DF.

color_type_oper

Named vector of color for the graph, must match type operation default to c( "Fonc normal" = "#1B9E77","Arr ponctuel" = "#E6AB02", "Arr maint" = "#9E0142", "Dysfonc" = "#E41A1C","Non connu" = "#999999").

color_etat

Named vector state value (must match the names "TRUE", "FALSE").

Value

Nothing but prints the different plots.

Note

The program cuts periods which overlap between two month. The splitting of different periods into month is assigned to the envir_stacomi environment.

Author(s)

Cedric Briand cedric.briand@eptb-vilaine.fr


stacomiR documentation built on Sept. 9, 2022, 3:10 p.m.