plot.idclass: Plot and print intermittent demand categorisation

View source: R/idclass.R

plot.idclassR Documentation

Plot and print intermittent demand categorisation

Description

Plot or print the categorisation of intermittent demand series produced by idclass.

Usage

## S3 method for class 'idclass'
plot(x, type = c("summary", "detail"), plot.focus = NULL, ...)

## S3 method for class 'idclass'
print(x, ...)

Arguments

x

An object of class idclass.

type

Type of plot: "summary" for a simplified plot that reports the number of series in each class and the cut-off points, or "detail" for a scatterplot of the series.

plot.focus

Only relevant to type == "detail". A vector of two elements, the maximum p and CV^2 to plot. If NULL, the maximums are defined from the dataset.

...

Additional arguments passed to plot, for example main.

Value

plot has no return value, and print returns x invisibly.

Author(s)

Nikolaos Kourentzes, nikolaos@kourentzes.com

See Also

idclass.

Examples

set.seed(1)
cls <- idclass(simID(50, 60, idi=1.3, cv2=0.5), outplot="none")
cls
plot(cls)
plot(cls, type="detail", main="Simulated series")


tsintermittent documentation built on Nov. 14, 2026, 5:06 p.m.