trends_plots_helper: Plot average trends in pollutant concentration

Description Usage Arguments Value

Description

Plot average trends in pollutant concentration

Usage

1
trends_plots_helper(df, sites, poll, stat, start.date, end.date)

Arguments

df

Data frame of average pollutant concentrations containing the variables date, site_code, av_value.

sites

Logical indicating whether to plot trends by site (TRUE) or average trend over all sites (FALSE).

poll

The pollutant for which to plot the trends.

stat

The statistic which was used for averaging (for the y axis label)

start.date, end.date

A string in the format "YYYY-MM-DD" specifying the starting date and the ending date for the trends.

smooth.method

The smoothing method to use in the geom_smooth function when plotting trends.

Value

A plot of the average trend in poll concentration over the period start.date - codeend.date either for each monitoring site or averaged over all monitoring sites


pollylang/aqtrends documentation built on May 20, 2019, 8:24 p.m.