plotValueSeries {matman}R Documentation

Plots the development of the values

Description

Plots a bar chart that shows the sum of the value column for a certain time interval.

Usage

plotValueSeries(
  data,
  item,
  item_id,
  value,
  timestamp,
  temporalAggregation = c("day", "week", "month", "quarter", "year"),
  expand = TRUE,
  withTrendLine = TRUE,
  windowLength = 5,
  trendLineType = "s"
)

Arguments

data

Data frame or matrix on which the ABC analysis is performed.

item

Name of the column including the item name or identifier (e.g., product name, EAN).

item_id

Name of the item that will be displayed.

value

Name of the column variable that contains the values.

timestamp

Name of the column including the timestamp. This column should be in POSIX or date-format.

temporalAggregation

Temporal aggregation for the XYZ-analysis (i.e., "day", "week", "month", "quarter", "year").

expand

Indicator if the data should be expanded with time intervals that have no data.

withTrendLine

Indicator if a trend line should be displayed in the bar chart.

windowLength

Backwards window length.

trendLineType

If "s" the simple and if "w" the weighted moving average is calculated.

Value

A plotly bar chart, that shows the development of the value column.

Author(s)

Leon Binder leon.binder@th-deg.de

Bernhard Bauer bernhard.bauer@th-deg.de

Michael Scholz michael.scholz@th-deg.de

Examples

data("Amount")
plotValueSeries(Amount,
                item = "item",
                item_id = "45186",
                value = "amount",
                timestamp = "date",
                temporalAggregation = "week",
                withTrendLine = TRUE,
                windowLength = 10,
                trendLineType = "w")

[Package matman version 1.1.3 Index]