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

plot,report_df,missing-methodR Documentation

Different plots for report_df

Description

plot.type=1

A barplot of the operation time per month

plot.type=2

Barchat giving the time per type of operation

plot.type=2

Rectangle plots drawn along a line

plot.type=4

Plots 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 May 29, 2024, 10:41 a.m.