Well, I don't quite have a solution in my brain or way to phrase this for a WWW search. I 'plot' a series (x = time, y = count) in base plot, then I run "par(new = TRUE)" and plot a new series (x=time, y = count/n) on top of the old and label the second y-axis accordingly to account for units of second series.
However for this new series it should start shifted over 22 integers on the x-axis. Its initial x-value is 23, but it is still starts above the day 1 value for the initial series. I haven't made a reproducible example since it seems like this could have a simple solution.
Code for series is:
However for this new series it should start shifted over 22 integers on the x-axis. Its initial x-value is 23, but it is still starts above the day 1 value for the initial series. I haven't made a reproducible example since it seems like this could have a simple solution.
Code for series is:
Code:
plot(x = x_IS, y = y_IS,
type = "l",
lty = 2,
lwd = 2,
col = "black",
axes = FALSE,
xlab = NA,
ylab = NA)