我正在使用 Rattle 附带的 weather.csv 数据集(注意:我没有为此使用 Rattle)并尝试构建一个与风向和风速相关的箱线图。我正在执行以下操作,但没有显示任何情节,也没有错误或警告:
weatherPlot <- ggplot(weather, aes(factor(WindGustDir), WindGustSpeed))
weatherPlot + geom_boxplot()
任何想法为什么我的情节会是空白的?
PS WindGustDir 数据是分类值,如 N、E、W、S、NW、SE 等,WindGustSpeed 是数值。