我期待在几个月内创建几小时的循环图。我希望它看起来像情节波澜。我的目标是绘制一个水平线表示每个月的平均温度,然后在每个月的图表中显示该月典型日子的温度波动。我试图用monthplot()
但似乎并不奏效:创建循环图
library(nycflights13)
tempdata <- weather %>% group_by(hour)
monthplot(tempdata, labels = NULL, ylab = "temp")
口口声声说argument is not numeric or logical: returning NA
但我不知道在哪里的代码是怎么了。
@ njw3498可以请你接受的解决方案,如果它为你工作 – PoGibas