如何防止标签堆积在堆积条形图中

时间:2021-06-15 16:33:15

标签: r ggplot2

我正在尝试制作带有刻度线标签的堆积条形图,但标签会自动聚集在输出的左角。我怎样才能解决这个问题? 下面是我的代码。

ggplot(Eff2, aes(x=Professor, fill=Student)) + 
  geom_bar(position = "fill") + 
   guides(fill=guide_legend(title="Student Score Range"))

谢谢!

0 个答案:

没有答案