我希望能够创建一个只有一个时间序列的图,但我希望显示的交互值来自两个时间序列。理想情况下,我想要这样的东西:
我知道如何绘制两个时间序列
library(dygraphs)
lungDeaths <- cbind(mdeaths, fdeaths)
# This one creates a plot with the two time series
dygraph(lungDeaths)
我知道如何只绘制一个时间系列
# This one creates a plot with the mdeaths time serie
dygraph(lungDeaths[,1])
但是如何绘制一个时间序列,但显示两个时间序列的值?