plot,ABCXYZData,ANY-method {matman}R Documentation

Plots the result of an ABC/XYZ analysis

Description

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

Usage

## 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

data("Amount")
abcResult = computeABCXYZAnalysis(data = Amount,
    value = "value",
    item = "item",
    timestamp = "date")
plot(abcResult,
     plot_engine = "graphics",
     title = "ABC Analysis",
     xlab = "Items",
     ylab = "Demand")

[Package matman version 1.1.3 Index]