Description Usage Arguments Value Examples
Detects a difference in average concentration of the pollutant of interest between sites opening and closing in a given year (i.e. a bias towards more/less polluted locations) and any change in this bias over time.
1 | site_flux_bias(obs, pollutant, stat = "median")
|
obs |
A data frame of ambient pollutant concentration data. Must contain the columns: site_code, date,
value. If 'pollutant' is a pollutant ratio, the data frames of the corresponding pollutants
must be supplied as a list of data frames in the order they are given in the ratio. E.g. for
|
pollutant |
The pollutant of interest (character string). To calculate rolling change trend for a pollutant ratio,
separate the two pollutants with a forward slash e.g. |
stat |
The metric (character string) used to average the ambient concentration data by year. Options: "median", "mean". |
A list of plots:
difference
- a plot of the difference between the average concentration of opening sites and closing
sites as a function of year.
cumulative_difference
- the cumulative sum of differences in average concentration of opening sites and
closing sites as a function of year.
weighted_cumulative_difference
- the cumulative sum of differences in average concentration of opening and
closing sites weighted by the number of opening/closing sites as a function of year.
compare
- a side-by-side comparison of the difference
, cumulative_difference
and
weighted_cumulative_difference
plots.
1 2 3 4 | ## Not run:
site_flux_bias(london_nox_data, pollutant = "nox", stat = "median")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.