plot_heathour {AeRobiology} | R Documentation |
Plotting hourly patterns with heatplot
Description
Function to plot pollen data expressed in concentrations with time resolution higher than 1 day (e.g. hourly, bi-hourly concentrations). As heatplot.
Usage
plot_heathour(data, locations = FALSE, low.col = "blue",
mid.col = "white", high.col = "red")
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.
|
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 .
|
low.col |
A character object with the specification of the color of the lowest value for the scale. By default, low.col = "blue" .
|
mid.col |
A character object with the specification of the color of the medium value for the scale. By default, mid.col = "white" .
|
high.col |
A character object with the specification object with the specification of the color of the highest value for the scale. By default, high.col = "red" .
|
Value
The function returns an object or a list of objects of class ggplot2.
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
data("POMO_pollen")
plot_heathour(POMO_pollen)
[Package
AeRobiology version 2.0.1
Index]