R语言中如何调整柱状图中柱的顺序?

导入的csv文件中是按照春夏秋冬的顺序排列的,但是画出来的图每一组的都是乱序,原本图例当中的也不是这样的,是经过breaks=("Spring","Summer","Fall","Winter")就变成了春夏秋冬的顺序。想问一下柱状图如何变成春夏秋冬的顺序?

p1<-ggplot(newrow, aes(x=Components, y=F,fill=Seasons))+
  geom_bar(stat="identity", position=position_dodge(),color="black", width=.6) +
  scale_fill_manual(values = mycol,breaks=c("Spring","Summer","Fall","Winter")) +
  geom_errorbar(aes(ymin=Fmax-Sd, ymax=Fmax +Sd),position=position_dodge(.6), width=.2)

 

想问下你的这个问题解决了吗?我最近也遇到了这个问题