Skip to content

Commit

Permalink
plot caption correction
Browse files Browse the repository at this point in the history
  • Loading branch information
AQLT committed Jun 24, 2023
1 parent 49a195e commit 2261d50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/decomposition.R
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ plot.JD3_SADECOMPOSITION <- function(x, first_date = NULL, last_date = NULL,
# par(mar = c(5, 4, 4, 2) + 0.1)
ts.plot(data_plot[, series_graph],
col = colors[series_graph],
main = caption, lty = lty,
main = caption[1], lty = lty,
...)
legend("bottomleft", legend = c("Series", "Trend","Seasonally adjusted"),
col = colors[series_graph], lty = 1,
Expand All @@ -90,7 +90,7 @@ plot.JD3_SADECOMPOSITION <- function(x, first_date = NULL, last_date = NULL,
# col <- colors[gsub("_.*$", "", series_graph)]
ts.plot(data_plot[, series_graph],
col = colors[series_graph],
main = caption, lty = lty,
main = caption[1], lty = lty,
...)
legend("bottomleft", legend = c("Seas (component)",
"Irregular"),
Expand Down

0 comments on commit 2261d50

Please sign in to comment.