Order x axis (number of month)

I have a dataframe as following year month increment 113 6 464 113 7 132 113 8 165 113 9 43 113 10 658 113 11 54 113 12 463 114 1 231 114 2 21 Despite being ordered as indicated, when I plot increment~factor(month), the resulting x axis in the plot starts from month 1, instead of starting with month 6 like the dataframe qplot(month,data=monthly,fill=treatment,weight=increment,position="dodge") What should I do to make x axis respect the order of the month I need?
In general, the order of the data in your data frame has no connection to how it will be displayed. (There are exceptions, but they are rare.)

以上就是Order x axis (number of month)的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏