plot_ps {AeRobiology}R Documentation

Pollen Season Plot

Description

Function to plot the main pollen season of a single pollen type.

Usage

plot_ps(data, pollen.type = NULL, year = NULL, days = 30,
  fill.col = "turquoise4", int.method = "lineal",
  axisname = expression(paste("Pollen grains / m"^"3")), ...)

Arguments

data

A data.frame object including the general database where interpollation must be performed. This data.frame must include a first column in Date format and the rest of columns in numeric format. Each column must contain information of one pollen type. It is not necessary to insert missing gaps; the function will automatically detect them.

pollen.type

A character string specifying the name of the pollen type which will be plotted. The name must be exactly the same that appears in the column name. Mandatory argument with no default.

year

A numeric (interger) value specifying the season to be plotted. The season does not necessary fit a natural year. See calculate_ps for more details. Mandatory argument with no default.

days

A numeric (interger) specifying the number of days beyond each side of the main pollen season that will be represented. The days argument will be 30 by default.

fill.col

A character string specifying the name of the color to fill the main pollen season (Galan et al., 2017) in the plot. See ggplot function for more details. The fill.col argument will be "turquoise4" by default.

int.method

A character string specifying the method selected to apply the interpolation method in order to complete the pollen series. The implemented methods that may be used are: "lineal", "movingmean", "spline" or "tseries". See interpollen function for more details. The int.method argument will be "lineal" by default.

axisname

A character string or an expression specifying the y axis title of the plot. The axisname argument will be expression(paste("Pollen grains / m" ^ "3")) by default.

...

Other arguments passed on to the pollen season calculation as specified in calculate_ps function.

Details

plot_ps function is designed to easily plot the main pollen season (Galan et al., 2017). The pre_peak period and the post_peak period are marked with different color intensity in the graph. The user must choose a single pollen type and season to plot.

Value

The function returns an object of class ggplot with a graphical representation of the main pollen season of the selected pollen type. The pre_peak and post_peak periods are marked with different color intensity.

References

Galan, C., Ariatti, A., Bonini, M., Clot, B., Crouzy, B., Dahl, A., Fernandez_Gonzalez, D., Frenguelli, G., Gehrig, R., Isard, S., Levetin, E., Li, D.W., Mandrioli, P., Rogers, C.A., Thibaudon, M., Sauliene, I., Skjoth, C., Smith, M., Sofiev, M., 2017. Recommended terminology for aerobiological studies. Aerobiologia (Bologna). 293_295.

See Also

calculate_ps, interpollen, ggplot.

Examples

data("munich_pollen")
plot_ps(munich_pollen, year = 2013, pollen.type = "Betula")

[Package AeRobiology version 2.0.1 Index]