我是用ggplot2做的进行柱状图,但是有几个问题求大神帮忙1、怎么把标签(geom_text)放在柱子的上面,而不是有些在柱子中间的哪种
2、怎么把颜色改为渐进的颜色
3、怎么把Y轴移到30的位置紧靠最长的那个柱子左边界。
求大神帮助,感激不尽,我的代码是:
ggplot(repinfo13,aes(number,value))+
geom_bar(stat="identity",alpha=0.8,width=0.7,fill="blue")+
coord_polar(theta = "x",start=0)+
geom_text(aes(label=report2),hjust=0.5,vjust=-3,size=1.8)+
theme(
axis.title=element_text(size=12,face="plain",color="black"),
axis.text = element_text(size=9,face="plain",color="black"),
axis.line = element_line(color="black"),
legend.title=element_text(size=12,face="plain",color="black"),
legend.background =element_blank(),
panel.background = element_rect(fill = "transparent",colour = NA),
panel.grid.minor.x =element_line(color = "grey80"),
panel.grid.major.y = element_line(color = "grey50"),
)+
scale_y_continuous(expand=c(0,0))+
scale_x_continuous(expand=c(0,0))
附件列表