## Registered S3 method overwritten by 'quantmod':
##   method            from
##   as.zoo.data.frame zoo

Air Quality Analysis

This is an R Markdown document to explain and explore the air quality index in the state of Kuwait. http://rmarkdown.rstudio.com.

1.1 Overall Summary Plot

##     Station        date          CO          NO         NO2         NOx 
## "character"      "Date"   "numeric"   "numeric"   "numeric"   "numeric" 
##          O3        PM10         SO2 
##   "numeric"   "numeric"   "numeric"

1.2 (\(SO_2\) time-series)

timePlot(data1, pollutant = c("SO2"), type = "Station")

trendLevel(data1, pollutant = "SO2")

calendarPlot(data1, pollutant = "SO2", year = 2019, 
             annotate = "wd")

smoothTrend(data1, pollutant = "SO2",
            avg.time = "month",
            type = "season",
            date.breaks = 10)

smoothTrend(data1, pollutant = c("SO2"), 
            type = c("Station"),
            date.breaks = 3, lty = 0)

polarPlot(data1, pollutant = "SO2", type = c("Station"))

1.3 (\(NO_2\) time-series)

timePlot(data1, pollutant = c("NO2"), type = "Station")

1.4 (\(CO\) time-series)

timePlot(data1, pollutant = c("CO"), type = "Station")

1.5 (\(PM10\) time-series)

timePlot(data1, pollutant = c("PM10"), type = "Station")

1.6 (\(O3\) time-series)

timePlot(data1, pollutant = c("O3"), type = "Station")

When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this: