# NOT RUN {
# basic wind frequency plot
polarFreq(mydata)
# wind frequencies by year
# }
# NOT RUN {
polarFreq(mydata, type = "year")
# }
# NOT RUN {
# mean SO2 by year, showing only bins with at least 2 points
# }
# NOT RUN {
polarFreq(mydata, pollutant = "so2", type = "year", statistic = "mean", min.bin = 2)
# }
# NOT RUN {
# weighted mean SO2 by year, showing only bins with at least 2 points
# }
# NOT RUN {
polarFreq(mydata, pollutant = "so2", type = "year", statistic = "weighted.mean",
min.bin = 2)
# }
# NOT RUN {
#windRose for just 2000 and 2003 with different colours
# }
# NOT RUN {
polarFreq(subset(mydata, format(date, "%Y") %in% c(2000, 2003)),
type = "year", cols = "jet")
# }
# NOT RUN {
# user defined breaks from 0-700 in intervals of 100 (note linear scale)
# }
# NOT RUN {
polarFreq(mydata, breaks = seq(0, 700, 100))
# }
# NOT RUN {
# more complicated user-defined breaks - useful for highlighting bins
# with a certain number of data points
# }
# NOT RUN {
polarFreq(mydata, breaks = c(0, 10, 50, 100, 250, 500, 700))
# }
# NOT RUN {
# source contribution plot and use of offset option
# }
# NOT RUN {
polarFreq(mydata, pollutant = "pm25", statistic
="weighted.mean", offset = 50, ws.int = 25, trans = FALSE)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab