plot-ABCXYZData-ANY-method: Plots the result of an ABC/XYZ analysis

Description Usage Arguments Author(s) See Also Examples

Description

Plots a graph that shows what percentage of items is responsible for what amount of value.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## S4 method for signature 'ABCXYZData,ANY'
plot(
  x,
  plot_engine = c("graphics", "plotly"),
  title = "",
  xlab = "",
  ylab = "",
  top5lab = NA,
  color = list(itemColor = "blue", top5Color = "black", aColor = "green", bColor =
    "orange", cColor = "red"),
  item = NA,
  ...
)

Arguments

x

Object of class ABCXYZData.

plot_engine

Name of the plot engine ("graphics", "plotly")

title

Plot title (e.g. 'ABC-Analysis').

xlab

Label of x-axis (e.g. 'Percentage of Items').

ylab

Label of y-axis (e.g. 'Percentage of cumulative Value').

top5lab

Title of the rank of the top 5 items (e.g. 'Items with the highest Value').

color

List of plot colors (i.e., itemColor, top5Color, aColor, bColor, cColor). Default is list(itemColor = "blue", top5Color = "black", aColor = "green", bColor = "orange", cColor = "red").

item

Name of a single column with an identifier, that is displayed in the top-5-ranking. Used if the ABCXYZData object has multiple item columns. If NA the first item column is displayed.

...

Further optional parameters for function graphics::plot or function plotly::plot_ly.

Author(s)

Leon Binder leon.binder@th-deg.de

Bernhard Bauer bernhard.bauer@th-deg.de

Michael Scholz michael.scholz@th-deg.de

See Also

computeABCXYZAnalysis ABCXYZData

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data("Amount")
abcResult = computeABCXYZAnalysis(data = Amount,
    value = "value",
    item = "item",
    timestamp = "date")
plot(abcResult,
     plot_engine = "graphics",
     title = "ABC Analysis",
     xlab = "Items",
     ylab = "Demand")

Example output

Loading required package: shiny
Registered S3 method overwritten by 'quantmod':
  method            from
  as.zoo.data.frame zoo 

matman documentation built on Dec. 13, 2021, 5:08 p.m.