【问题标题】:Add statistically significant difference between bars to plotnine plot (ggpubr equivalent)将条形之间的统计显着差异添加到 plotnine 图(ggpubr 等效项)
【发布时间】:2020-10-20 19:42:16
【问题描述】:

在许多图中,人们希望突出某些结果之间观察到的差异的统计显着性。可以使用 ggpubr()geom.signif() 扩展在 R 中完成此任务。

我的意思是这里的一个例子(见带星号的水平条): https://www.nature.com/articles/s41598-019-40496-8/figures/1

我正在生成与图中所示完全相同的图,但我的工作流程是基于 python 的,仅仅为此使用 R 会让我很恼火。我想获得类似R的另一个线程中建议的东西,但是在python plotnine中: Put stars on ggplot barplots and boxplots - to indicate the level of significance (p-value)

据我所知,没有办法使用 plotnine 获得这种类型的统计表示。您有解决方法或建议吗?我是否在 plotnine API 中错过了它?

【问题讨论】:

    标签: python ggplot2 ggpubr significance plotnine


    【解决方案1】:

    来这里是为了寻找同样的东西,因为 plotnine 的 API 缺少 ggpubr 的 stat_compare_means 的等价物(plotnine 是 ggplot2 的一个实现,所以也许档案不完整也就不足为奇了)。

    但是,在this 线程中,我发现另一个名为statannot 的库似乎就是这样做的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-07-16
      • 2013-02-04
      • 1970-01-01
      • 2021-04-09
      • 2012-12-20
      • 2017-12-14
      • 2016-11-14
      • 1970-01-01
      相关资源
      最近更新 更多