【发布时间】:2015-12-06 18:39:48
【问题描述】:
我想使用 dygraph 一次绘制多个图(它们不必在第一步中同步)
基础 R 示例:
temperature <- ts(frequency = 12, start = c(1980, 1),
data = c(7.0, 6.9, 9.5, 14.5, 18.2, 21.5,
25.2, 26.5, 23.3, 18.3, 13.9, 9.6))
rainfall <- ts(frequency = 12, start = c(1980, 1),
data = c(49.9, 71.5, 106.4, 129.2, 144.0, 176.0,
135.6, 148.5, 216.4, 194.1, 95.6, 54.4))
par(mfrow = c(2, 1))
plot(temperature)
plot(rainfall)
使用 dygraph 这种方法不起作用
require(dygraphs)
par(mfrow = c(2, 1))
dygraph(temperature)
dygraph(rainfall)
我知道有可能显示第二个轴等。但也许有人知道同时显示两个图的答案
【问题讨论】:
标签: r plot time-series dygraphs