plot_hour: Plotting hourly patterns

Description Usage Arguments Value References Examples

Description

Function to plot pollen data expressed in concentrations with time resolution higher than 1 day (e.g. hourly, bi-hourly concentrations).

Usage

1
plot_hour(data, result = "plot", locations = FALSE)

Arguments

data

A data.frame object with the structure long. Where the first two columns are factors indicating the pollen and the location. The 3 and 4 columns are POSIXct, showing the hour. Where the third column is the beguinning of the concentration from and the fourth column is the end time of the concentrtion data to. The fifth column shows the concentrations of the different pollen types as numeric. Please see the example 3-hourly data from the automatic pollen monitor BAA500 from Munich and Viechtach in Bavaria (Germany) data("POMO_pollen"), supplied by ePIN Network supported by the Bavarian Government.

result

A character object with the definition of the object to be produced by the function. If result == "plot", the function returns a list of objects of class ggplot2; if result == "table", the function returns a data.frame with the hourly patterns. By default, result = "plot".

locations

A logical object with the specification if the different locations will be displayed in the plot. Argument only used when result == "plot". By default, locations = FALSE.

Value

If result == "plot", the function returns a list of objects of class ggplot2; if result == "table", the function returns a data.frame with the hourly patterns.

References

Oteros, J., Pusch, G., Weichenmeier, I., Heimann, U., Mueller, R., Roeseler, S., ... & Buters, J. T. (2015). Automatic and online pollen monitoring. International archives of allergy and immunology, 167(3), 158-166.

Examples

1
2
3
data("POMO_pollen")
plot_hour(POMO_pollen, result="plot", locations = FALSE)
plot_hour(POMO_pollen, result="plot", locations = TRUE)

AeRobiology documentation built on June 3, 2019, 9:03 a.m.