简体   繁体   English

像在ggplot中一样循环圆形条形图

[英]Circlize circular barplot as in ggplot

I am trying to duplicate a circular barplot made with ggplot2 into ciclize as follows:我正在尝试将使用 ggplot2 制作的圆形条形图复制到 ciclize 中,如下所示: 带有ggplot2的圆形条形图

While I can bring it into a scatterplot and add a regression:虽然我可以将它带入散点图并添加回归:

在此处输入图像描述

The visualization as barplot interests me more.条形图的可视化让我更感兴趣。 However I have not found any similar example in the circlize guide or any example.但是,我在 circlize 指南或任何示例中没有找到任何类似的示例。 I have tooled with the circos.polygon however drawing each bar seems not the best solution.我已经使用 circos.polygon 工具,但是绘制每个条似乎不是最好的解决方案。 Thus, I wonder if someone has toyed with this already, while no specific subject existis in stackoverflow.因此,我想知道是否有人已经玩过这个,而stackoverflow中没有特定的主题。

I contacted Zuguang Gu on twitter and he was kind enough to make a wraper function for circlize.我在 twitter 上联系了 Zuguang Gu,他很友好地制作了一个包装 function 用于 circlize。 He posted the details here:他在这里发布了详细信息:

https://jokergoo.github.io/circlize/reference/circos.barplot.html https://jokergoo.github.io/circlize/reference/circos.barplot.html

I really like ggplot2 but the level of detail and easy handling for circular barplots made me look for an answer using circlize.我真的很喜欢 ggplot2 但圆形条形图的详细程度和易于处理使我使用 circlize 寻找答案。

Thanks to all that answered.感谢所有回答。

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

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