Skip to contents

[Stable] Return a pie chart of Environmental observed properties, as a stored in DEIMS-SDR catalogue, of a single eLTER site.

Usage

produce_site_observedProperties_pie(deimsid)

Arguments

deimsid

A character. It is the DEIMS ID of site/network from DEIMS-SDR website. DEIMS ID information here.

Value

The output of the function is a pie chart and a tibble. The percentages, as a label in the pie charts and in the output table ( column 'perc'), refer to the number of the observed properties, belonging to a type (e.g. biological, atmospheric, etc.), measured compared to all of observed properties measured into selected eLTER site. This function allows to show what type of observed properties are most measured into a site. In the example below the atmospheric observed properties corresponds to the 15 percent of all observed properties measured into the site.

The function output

Observed properties pie chart

References

Müller K, Wickham H (2022). tibble: Simple Data Frames. R package version 3.1.7, https://CRAN.R-project.org/package=tibble.

Wickham H, François R, Henry L, Müller K (2022). dplyr: A Grammar of Data Manipulation. R package version 1.0.9, https://CRAN.R-project.org/package=dplyr.

Neuwirth E (2022). RColorBrewer: ColorBrewer Palettes. R package version 1.1-3, https://CRAN.R-project.org/package=RColorBrewer.

Wickham H (2016). ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag New York. ISBN 978-3-319-24277-4, https://ggplot2.tidyverse.org.

Pedersen TL (2021). ggforce: Accelerating 'ggplot2'. R package version 0.3.3, https://CRAN.R-project.org/package=ggforce.

Author

Alessandro Oggioni, phD (2020) oggioni.a@irea.cnr.it

Examples

if (FALSE) {
pie <- produce_site_observedProperties_pie(
  deimsid = "https://deims.org/f30007c4-8a6e-4f11-ab87-569db54638fe"
)
pie
}