From 04b21eb339aa6be51585e44944834fd18aa6ef4a Mon Sep 17 00:00:00 2001 From: l-k- Date: Sat, 27 Jan 2024 14:19:49 -0500 Subject: [PATCH] add default value for variable extranoons --- R/g.plot.R | 1 + 1 file changed, 1 insertion(+) diff --git a/R/g.plot.R b/R/g.plot.R index 4a97044ae..72347b032 100644 --- a/R/g.plot.R +++ b/R/g.plot.R @@ -134,6 +134,7 @@ g.plot = function(IMP, M, I, durplot) { x.intersp = x.intersp, ncol = 4, cex = 0.6, lwd = 0.6, bg = "white", box.col = "black") } + extranoons = c() if (length(mnights) > 0 & length(noons) > 0) { # axis 1: midnight, noon labels (including one extra day at the beginning and end) extramnights = c(mnights[1] - n_ws2_perday, mnights, max(mnights) + n_ws2_perday)