Function to plot pollen data expressed in concentrations with time resolution higher than 1 day (e.g. hourly, bi-hourly concentrations). As heatplot.
plot_heathour(data, locations = FALSE, low.col = "blue",
mid.col = "white", high.col = "red")
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.
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
.
A character
object with the specification of the color of the lowest value for the scale. By default, low.col = "blue"
.
A character
object with the specification of the color of the medium value for the scale. By default, mid.col = "white"
.
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"
.
The function returns an object or a list of objects of class ggplot2.
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.
# NOT RUN {
data("POMO_pollen")
plot_heathour(POMO_pollen)
# }
Run the code above in your browser using DataLab