| msales | R Documentation |
Monthly sales for a product with shortage indicators.
msales
Monthly multiple time series with 36 observations on 2 variables, indexed by year 1-3:
SalesMonthly sales.
stockoutsIndicator equal to 1 when there was a stock shortage, and 0 otherwise.
Hyndman, R.J., Koehler, A.B., Ord, J.K., and Snyder, R.D. (2008) Forecasting with exponential smoothing: the state space approach, Springer. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1007/978-3-540-71918-2")}.
https://robjhyndman.com/expsmooth/
stock <- factor(msales[, "stockouts"],
labels = c("Excess stock", "Stock shortage")
)
autoplot(msales[, "Sales"],
main = "Monthly sales of a product",
ylab = "Sales", xlab = "Year"
) +
ggplot2::geom_point(ggplot2::aes(shape = stock)) +
ggplot2::labs(shape = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.