Description Usage Arguments Details Value References See Also Examples
Generates a barplot based on the relative abundance (as percentage) in the air of the pollen types with respect to the total amounts
1 2 3 4 |
data |
A |
n.types |
A |
y.start, y.end |
A |
interpolation |
A |
int.method |
A |
col.bar |
A |
type.plot |
A |
result |
A |
export.plot |
A |
export.format |
A |
exclude |
A |
... |
Other additional arguments may be used to customize the exportation of the plots using |
This function allows to calculate the relative abundance of the pollen types in the air from a database and to display a barplot with the percentage representation of the main pollen types as the graph reported by Rojo et al. (2016). This plot will be generated only for the specified number of the most abundant pollen types using the n.types argument by the user.
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:
plot in the active graphics window displaying the pollen calendar generated by the user when result = "plot". This plot may be included in an object by assignment operators.
data.frame including the yearly average pollen amounts for each pollen types used to generate the pollen of the relative abundance when result = "table". This data.frame will be included in an object named annual.sum.data.
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 with the 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 with the 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 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 by plotly syntax (see plotly package).
Rojo, J., Rapp, A., Lara, B., Sabariego, S., Fernandez_Gonzalez, F. and Perez_Badia, R., 2016. Characterisation of the airborne pollen spectrum in Guadalajara (central Spain) and estimation of the potential allergy risk. Environmental Monitoring and Assessment, 188(3), p.130.
1 2 | data("munich_pollen")
iplot_abundance (munich_pollen, interpolation = FALSE, export.plot = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.