Skip to contents

Plot of a Walter & Lieth climatic diagram from monthly climatology data for a station. This climatogram are great for showing a summary of climate conditions for a place over a specific time period.

Usage

climatogram_period(
  station = NULL,
  start = 1990,
  end = 2020,
  labels = "en",
  verbose = FALSE,
  ggplot2 = TRUE,
  ...
)

Arguments

station

Character string with station identifier code(s) (see aemet_stations()).

start

Numeric value as start year (format: YYYY).

end

Numeric value as end year (format: YYYY).

labels

Character string as month labels for the X axis: "en" (english), "es" (spanish), "fr" (french), etc.

verbose

Logical TRUE/FALSE. Provides information about the flow of information between the client and server.

ggplot2

TRUE/FALSE. On TRUE the function uses ggclimat_walter_lieth(), if FALSE uses climatol::diagwl().

...

Further arguments to climatol::diagwl() or ggclimat_walter_lieth(), depending on the value of ggplot2.

Value

A plot.

Note

The code is based on code from the CRAN package climatol.

API Key

You need to set your API Key globally using aemet_api_key().

References

  • Walter, H. K., Harnickell, E., Lieth, F. H. H., & Rehder, H. (1967). Klimadiagramm-weltatlas. Jena: Fischer, 1967.

  • Guijarro J. A. (2023). climatol: Climate Tools (Series Homogenization and Derived Products). R package version 4.0.0, https://climatol.eu.

Examples

# \donttest{
climatogram_period("9434", start = 2015, end = 2020, labels = "en")
#> HTTP 429: Límite de peticiones o caudal por minuto excedido para este usuario. Espere al siguiente minuto. Retrying...

# }