Polar plots considering changes in concentrations between two time periods
This function provides a way of showing the differences in concentrations between two time periods as a polar plot. There are several uses of this function, but the most common will be to see how source(s) may have changed between two periods.
polarDiff(before, after, pollutant = "nox", x = "ws", limits = NA, ...)
before |
A data frame that represents the "before" case. See
|
after |
A data frame that represents the "after" case. See
|
pollutant |
The pollutant to analyse. |
x |
The variable used for the radial axis (default = "ws"). |
limits |
The colour scale limits e.g. |
... |
Other arguments to |
While the function is primarily intended to compare two time periods at the same location, it can be used for any two data sets that contain the same pollutant. For example, data from two sites that are close to one another, or two co-located instruments.
The analysis works by calculating the polar plot surface for the
before
and after
periods and then subtracting the before
surface from the after
surface.
Only plot at the moment.
## Not run: before_data <- selectByDate(mydata, year = 2002) after_data <- selectByDate(mydata, year = 2003) polarDiff(before_data, after_data, pollutant = "no2") # with some options polarDiff(before_data, after_data, pollutant = "no2", cols = "RdYlBu", limits = c(-20, 20)) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.