Learn R Programming

stacomiR (version 0.6.1)

plot,report_df,missing-method: 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 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")
)

Value

Nothing but prints the different plots.

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").

Author

Cedric Briand cedric.briand@eptb-vilaine.fr