【发布时间】:2020-11-19 16:30:52
【问题描述】:
当我有名为“汇总”的数据时,
如果我使用以下代码制作条形图
ggplot (data=summarized , aes(x=Stage, y=mean, fill=heat)) +
geom_bar(stat="identity",position="dodge", width = 0.5) +
geom_errorbar(aes(ymin= mean-se, ymax=mean + se), position=position_dodge(0.5) ,width=0.2) +
scale_fill_manual(values= c ("darkslategray","azure3"), name="Treatment")
图表是这样的,但我希望 Pre-Anthesis 先出现。如何更改此顺序?
非常感谢,
【问题讨论】: