R 如何使用ggplot2创建加权饼图

R 如何使用ggplot2创建加权饼图,r,ggplot2,R,Ggplot2,我有以下数据: #Celltype Weight abTcells 10.65 Bcells 14.87 DendriticCells 22.71 gdTCells 8.6 Macrophages 7.14 Monocytes 6.43 Neutrophils 4.13 NKCells 6.94 StemCells 11.44 StromalCells 7.1 如何使用ggplot创建与Excel生成的绘图类似的绘图: 如果您不想要带标签的轴nd,请告诉我

我有以下数据:

#Celltype   Weight
abTcells    10.65
Bcells  14.87
DendriticCells  22.71
gdTCells    8.6
Macrophages 7.14
Monocytes   6.43
Neutrophils 4.13
NKCells 6.94
StemCells   11.44
StromalCells    7.1
如何使用ggplot创建与Excel生成的绘图类似的绘图:


如果您不想要带标签的轴nd,请告诉我如果您不想要带标签的轴nd,请告诉我
ggplot(df,aes(x=factor(1),y=Weight,fill=Celltype))+
   geom_bar(width=1,stat="identity")+coord_polar(theta="y")