R dygraph prediction plotted along with original values <p>I need to plot a time series in Dygraphs, where multiple time series are plotted together.</p> <p>As data we can use</p> <pre><code>df &lt;- cbind(mdeaths, fdeaths) </code></pre> <p>as is done on dygraphs website: <a href="https://rstudio.github.io/dygraphs/" rel="nofollow noreferrer">https://rstudio.github.io/dygraphs/</a></p> <p>However I would like to make the prediction of both time series continue in the same image as the original data. I have made a crude drawing of what I want to achieve</p> <p><a href="https://i.stack.imgur.com/ZLjIs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZLjIs.png" alt="enter image description here"></a></p> <p>One way is naturally to make the predictions with i.e auto.arima separately and then combine the data once again. I am wondering if there is a functionality, that can do it all in one shot?</p>