r-如何在多个面板中绘制图 [英] r - how to plot dygraphs in multiple panels

查看:102
本文介绍了r-如何在多个面板中绘制图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在不同面板中绘制动态图,因为可以使用group在网站上使用它,例如

I was trying to plot dynamic graph in different panels as it could be done on the website using group such as

,但使用笔形图应该是动态的.此处为示例代码:

but it should be dynamic using dygraphs. An example code here:

library(quantmod)
library(dygraphs)
data(edhec)
R = edhec[, 1:4]
dygraph(R)

非常感谢.

推荐答案

使用synchronization功能此处

要将其作为一个文档查看,您需要knit一个HTML页面.查看此 SO 答案以了解详细信息.

To view it as one document, you will need to knit an HTML page. Look at this SO answer for details.

您的最终结果将类似于.

Your final result would be like this.

这篇关于r-如何在多个面板中绘制图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆