Description Usage Arguments Details Value References See Also Examples
Generates a boxplot based on phenological parameters (start_dates and end_dates) that are calculated by the estimation of the main parameters of the pollen season
1 2 3 4 5 6 7 | iplot_pheno(data, method = "percentage", n.types = 15, th.day = 100,
perc = 95, def.season = "natural", reduction = FALSE,
red.level = 0.9, derivative = 5, man = 11, th.ma = 5,
n.clinical = 5, window.clinical = 7, window.grains = 5,
th.pollen = 10, th.sum = 100, type = "none",
interpolation = TRUE, int.method = "lineal", type.plot = "static",
export.plot = FALSE, export.format = "pdf", ...)
|
data |
A |
method |
A |
n.types |
A |
th.day |
A |
perc |
A |
def.season |
A |
reduction |
A |
red.level |
A |
derivative |
A |
man |
A |
th.ma |
A |
n.clinical |
A |
window.clinical |
A |
window.grains |
A |
th.pollen |
A |
th.sum |
A |
type |
A |
interpolation |
A |
int.method |
A |
type.plot |
A |
export.plot |
A |
export.format |
A |
... |
Other additional arguments may be used to customize the exportation of the plots using pdf or png files and therefore arguments from |
This function allows to calculate the pollen season using five different methods which are described in calculate_ps
function. After calculating the start_date and end_date for each pollen type and each year a phenological plot will be generated using the boxplot approach where axis x represents the time (Day of the Year) and axis y includes the considered pollen types. The phenological plot will be generated only for the specified number of the most abundant pollen types using the n.types
argument by the user. The implemented methods for defining the pollen season includes the most commonly used methodologies (Nilsson and Persson, 1981; Andersen, 1991; Galan et al., 2001; Ribeiro et al., 2007; Cunha et al., 2015, Pfaar et al., 2017) and a new implemented method (see calculate_ps
function).
Pollen time series frequently have different gaps with no data and this fact could be a problem for the calculation of specific methods for defining the pollen season even providing incorrect results. In this sense by default a linear interpolation will be carried out to complete these gaps before to define the pollen season (interpolation = TRUE
). Additionally, the users may select other interpolation methods using the int.method
argument, as "lineal"
, "movingmean"
, "spline"
or "tseries"
. For more information to see the interpollen
function.
This function returns different results:
If export.plot = FALSE
graphical results will only be displayed in the active graphics window as ggplot graph. Additional characteristics may be incorporated to the plot by ggplot
syntax (see ggplot2 package).
If export.plot = TRUE
and export.format = pdf
a pdf file of the phenological plot will be saved within the plot_AeRobiology directory created in the working directory. This option is applicable only for "static"
plots. Additional characteristics may be incorporated to the exportation as pdf file (see grDevices package).
If export.plot = TRUE
and export.format = png
a png file of the phenological plot will be saved within the plot_AeRobiology directory created in the working directory. This option is applicable only for "static"
plots. Additional characteristics may be incorporated to the exportation png file (see grDevices package).
If type.plot = dynamic
graphical results will be displayed in the active Viewer window as plotly graph. Additional characteristics may be incorporated to the plot plotly
syntax (see plotly package).
Andersen, T.B., 1991. A model to predict the beginning of the pollen season. Grana, 30(1), pp.269_275.
Cunha, M., Ribeiro, H., Costa, P. and Abreu, I., 2015. A comparative study of vineyard phenology and pollen metrics extracted from airborne pollen time series. Aerobiologia, 31(1), pp.45_56.
Galan, C., Garcia_Mozo, H., Carinanos, P., Alcazar, P. and Dominguez_Vilches, E., 2001. The role of temperature in the onset of the Olea europaea L. pollen season in southwestern Spain. International Journal of Biometeorology, 45(1), pp.8_12.
Nilsson, S. and Persson, S., 1981. Tree pollen spectra in the Stockholm region (Sweden), 1973_1980. Grana, 20(3), pp.179_182.
Pfaar, O., Bastl, K., Berger, U., Buters, J., Calderon, M.A., Clot, B., Darsow, U., Demoly, P., Durham, S.R., Galan, C., Gehrig, R., Gerth van Wijk, R., Jacobsen, L., Klimek, L., Sofiev, M., Thibaudon, M. and Bergmann, K.C., 2017. Defining pollen exposure times for clinical trials of allergen immunotherapy for pollen_induced rhinoconjunctivitis_an EAACI position paper. Allergy, 72(5), pp.713_722.
Ribeiro, H., Cunha, M. and Abreu, I., 2007. Definition of main pollen season using logistic model. Annals of Agricultural and Environmental Medicine, 14(2), pp.259_264.
1 2 | data("munich_pollen")
iplot_pheno (munich_pollen, interpolation = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.