Learn R Programming

stacomiR (version 0.6.1)

plot,report_dc,missing-method: Different plots for report_dc

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 report_dc,missing
plot(
  x,
  plot.type = 1,
  silent = FALSE,
  main = NULL,
  color_type_oper = c(`Fonc normal` = "#76BEBE", `Arr ponctuel` = "#FF6700", `Arr maint`
    = "#9E0142", Dysfonc = "#EE1874", `Non connu` = "#999999"),
  color_etat = c(`TRUE` = "#0F313A", `FALSE` = "#CEB99A")
)

Value

Nothing but prints the different plots.

Arguments

x

An object of class report_dc-class.

plot.type

1 to 4, barplot, barchart, rectangle plot and box showing details of daily operation, a plot with adjacent rectangles.

silent

Stops displaying the messages default to FALSE

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" = "#76BEBE", "Arr ponctuel" = "#FF6700", "Arr maint" = "#9E0142", "Dysfonc" = "#EE1874", "Non connu" = "#999999").

color_etat

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

Author

Cedric Briand cedric.briand@eptb-vilaine.fr