具有三个维度的多重堆叠图
我有一个需要以视觉方式表示的数据集。它具有三个轴 - 州 (X)、吨 (Y) 和年份 (Z)。吨分为进口、出口和内部。在 Excel 中,我可以沿所有三个轴显示数据,但必须为导入、导出和内部创建单独的图表。我想展示的是沿着三个维度堆叠在一起的导入、导出和内部。
我正在共享一个 .pdf 文件,其中显示了数据集、导入、导出和内部的单独图表以及我想要的输出。链接到 PDF:http://bit.ly/nvgv4j
我想避免在图形/数据之外创建它程序,因为我希望能够随着数据的变化灵活地更改图表。 R 或 Excel 适合我。
间接来自 OP 的示例数据:
Type State 2007 2020 2040
E Alabama 96976 119425 153018
E California 159615 229495 504810
E Florida 80478 101040 143784
E Georgia 128221 141193 183145
E Texas 344165 421491 559856
I Alabama 129223 145461 202160
I California 227403 275670 331032
I Florida 166390 162251 200458
I Georgia 205480 225247 310748
I Texas 451072 505401 688487
N Alabama 275979 314230 384861
N California 1257797 1474378 2181214
N Florida 716259 713979 909170
N Georgia 407336 404705 488339
N Texas 1690048 1995219 2620223
I have a dataset that I need to represent visually. It has three axes - State (X), Tons (Y), and Year (Z). The Tons are split into Imports, Exports, and Internal. In Excel I am able to show the data along all three axes but have to create separate graphs for Imports, Exports, and Internal. What I want to show is the Imports, Exports and Internal stacked together along along the three dimensions.
I am sharing a .pdf which shows the dataset, the separate graphs by Imports, Exports, and Internal and my desired output. Link to the PDF: http://bit.ly/nvgv4j
I want to avoid creating it outside a graphing/data program as I want to have flexibility to change the graph as the data changes. R or Excel works for me.
Sample data indirectly from OP:
Type State 2007 2020 2040
E Alabama 96976 119425 153018
E California 159615 229495 504810
E Florida 80478 101040 143784
E Georgia 128221 141193 183145
E Texas 344165 421491 559856
I Alabama 129223 145461 202160
I California 227403 275670 331032
I Florida 166390 162251 200458
I Georgia 205480 225247 310748
I Texas 451072 505401 688487
N Alabama 275979 314230 384861
N California 1257797 1474378 2181214
N Florida 716259 713979 909170
N Georgia 407336 404705 488339
N Texas 1690048 1995219 2620223
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论