【发布时间】:2017-11-11 14:37:27
【问题描述】:
我希望在几个月内创建一个小时的循环图。我希望它看起来像下面的情节。我的目标是用水平线表示每个月的平均温度,然后在每个月内让图表显示该月典型日子的温度波动。我试图使用monthplot(),但它似乎不起作用:
library(nycflights13)
tempdata <- weather %>% group_by(hour)
monthplot(tempdata, labels = NULL, ylab = "temp")
它一直说argument is not numeric or logical: returning NA,但我不确定代码哪里出错了。
【问题讨论】: