首页 > 解决方案 > 如何用 R 创建这种图

问题描述

我正在尝试重现此图:

统计图

我在这里找到:https ://www.stats.com/industry-analysis-articles/salah-out-of-form-or-out-of-position/

但我所做的只是:

我的图

使用此代码:

ggplot(A[Position == "Central midfielder right",], 
    aes(x = variable ,y = value, fill = variable)) + 
  geom_bar(stat = "identity", position = "dodge") + 
  coord_polar()

标签: rggplot2graph

解决方案


推荐阅读