Description Usage Arguments Value Examples
Produces plots of annual average trends in the pollutant of interest aggregated over all sites, and over the long term sites only (i.e. sites open constantly over the period of interest).
1 2 3 | average_trends(obs, pollutant, stat = "median",
start.date = "2000-01-01", end.date = "2017-12-31",
avg.time = "year")
|
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 used to average the ambient concentration data by year. Options: "median", "mean". |
start.date |
The starting date of the period of interest. Data capture to filter long term sites will be conducted using this date as the starting date. |
end.date |
The end date of the period of interest. Data capture to filter long term sites will be conducted using this date as the ending date. |
avg.time |
Resolution to average data to. Options: "year", "month", "day". |
A list of plots:
average.trend
- The average trend over all sites measuring during the period of interest.
longterm.trend
- The average trend over all long term sites measuring constantly throughout the period.
trends.comparison
- Comparison of the average.trend
and the longterm.trend
.
average.allsites
- The average trend for each individual sites measuring during the period of interest.
longterm.allsites
- The average trend for each individual long term site measuring constantly throughout the period.
Note: if there are no long term sites available for the period of interest, only the average.trend
and
average.allsites
will be returned.
1 2 3 4 | ## Not run:
average_trends(london_nox_data, pollutant = "nox", start.date = "2000-01-01", end.date = "2017-12-31")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.