0

我使用 R 实现dygraphs在 R 中生成交互式图表。默认情况下,它绘制提供数据的折线图。但是我希望下面的数据有垂直条而不是折线图 -

library(dygraphs)
dygraph(mdeaths)

感谢有人可以给我任何实现相同的指针,因为我找不到任何选项来做同样的事情。

4

2 回答 2

1

尝试dyBarChart

library(dygraphs)
dyBarChart(dygraph(mdeaths))

在此处输入图像描述

于 2019-11-18T10:39:59.293 回答
0

尝试使用 Dygraphs 绘图仪插件。查看以下链接以了解 Dygraphs 条形图实现的实现。

https://github.com/danvk/dygraphs/blob/master/tests/plotters.html#L97 http://dygraphs.com/tests/plotters.html

也许它可以帮助你。

于 2019-11-21T06:54:29.413 回答