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 |
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 |
item |
Name of a single column with an identifier, that is displayed in the top-5-ranking.
Used if the |
... |
Further optional parameters for function |
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")