Skip to content

Commit 682618b

Browse files
authored
Merge pull request #1176 from m-muecke/fix/autolayer-msts-series-label
fix(autolayer.msts): label unnamed series with the object name
2 parents 8d8305f + 82b9505 commit 682618b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# forecast (development version)
22

33
* `auto.arima()` now truncates `xreg` together with the series when `approximation = TRUE` and `truncate` is set, so model selection no longer fails.
4+
* `autolayer()` now labels an unnamed `msts` series with the name of the object instead of "NULL".
45
* `autoplot.forecast()` no longer errors for cross-sectional regression models fitted without an intercept.
56
* `bld.mbb.bootstrap()` no longer errors when `num = 1` and now validates that `num` is a positive integer.
67
* `forecast.Arima()` now correctly passes `xreg` when `bootstrap = TRUE` (#1115).

R/ggplot.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2174,7 +2174,7 @@ autolayer.msts <- function(object, series = NULL, ...) {
21742174
class(object) <- c("mts", "ts", "matrix")
21752175
} else {
21762176
if (is.null(series)) {
2177-
series <- deparse1(substitute(series))
2177+
series <- deparse1(substitute(object))
21782178
}
21792179
class(object) <- "ts"
21802180
}

0 commit comments

Comments
 (0)