ggplot-month明智的subplot-order of month不按顺序排列

时间:2015-10-01 21:49:45

标签: java r ggplot2 tableau python-ggplot

在此处输入链接说明这是我的代码:

data<-read.csv("D:/wggplot.csv", header=TRUE)

ggplot (mydata, aes(x = Temp, y = growh, color = Month)) + geom_hex() +
  facet_wrap(~Month) + geom_smooth(method = "lm")  + theme_gray(20) + labs(y = "growth")

这将月份按字母顺序排列在图中。如何更改我的代码以按时间顺序获取月份?

0 个答案:

没有答案