简体   繁体   English

使用 GoogleVis 在 R 中分组条形图

[英]Grouped Bar Chart in R using GoogleVis

I am trying to create Grouped bar chart similar to the below attached image with 2 Dimensions and one measure.我正在尝试创建类似于下面附加图像的分组条形图,其中包含 2 个维度和一个度量。 [Grouped Bar Chart] [1]: https://i.stack.imgur.com/rUQ5Y.png 【分组条形图】【1】: https://i.stack.imgur.com/rUQ5Y.png

I can achieve this using ggplot2 package, but the charts created using ggplot are not interactive like when I place cursor on a bar it wont show the tooltips.我可以使用 ggplot2 package 来实现这一点,但是使用 ggplot 创建的图表不像我将 cursor 放在它不会显示工具提示的栏上那样具有交互性。 So I am preferring ggplot2 here.所以我更喜欢 ggplot2 这里。

How can I create chart similar to the attached image using googleVis package?如何使用 googleVis package 创建类似于附图的图表?

We used plotly package for achieving interactive visualizations instead of google visualizations which satisfied our requirement of Grouped bar chart.我们使用 plotly package 来实现交互式可视化,而不是满足我们对分组条形图要求的谷歌可视化。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM