- 积分
- 1077
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2019-2-25
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 SYNJU 于 2020-12-16 10:58 编辑
data<-read.csv("C:/Users/lenovo/Desktop/bbdh.csv")
data$date<-as.POSIXct(data$date)
data$PM2.5<-as.integer(data$PM2.5)
library(openair)
breaks<-c(0,35,75,115,150,250,350)
labels<-c("优","良","轻度污染","中度污染","重度污染","严重污染")
cols=c("green","yellow","orange","red","purple","maroon")
calendarPlot(data, pollutant = "PM2.5",breaks =breaks,labels = labels,cols=cols,main="Daily PM2.5 in 2020")
|
|