plot_application_timeseries: Plot time series of active ingredients in applied pesticides.

Description Usage Arguments Value Examples

View source: R/05-plot.R

Description

plot_application_timeseries returns a ggplot2 time series plot of pesticides present in a pull_clean_pur data frame. You can choose whether to facet the time series by active ingredient (chemname) or by chemical_class.

Usage

1
plot_application_timeseries(clean_pur_df, facet = FALSE, axes = "fixed")

Arguments

clean_pur_df

A data frame returned from pull_clean_pur.

facet

TRUE / FALSE for whether you would like time series plots to be faceted by unique chemname or chemical_class column values. If facet = FALSE (the default), all active ingredients present in the data set will be summed per day.

axes

A character string passed on to the scales argument of ggplot2::facet_wrap ("fixed", "free", "free_x", or "free_y"). The default is "fixed".

Value

A ggplot2 object.

Examples

1
2
3
4
5
6
7
library(magrittr)
readRDS(system.file("extdata", "fresno_clean.rds", package = "purexposure")) %>%
    plot_application_timeseries()

pull_clean_pur(1990:1992, "fresno") 
    dplyr::filter(chemname 
    plot_application_timeseries(facet = TRUE)

leighseverson/purexposure documentation built on Aug. 13, 2021, 6:34 p.m.