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" by Jose A. Guijarro jguijarrop@aemet.es.

API Key

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

References

Walter, H. & Lieth, H (1960): Klimadiagramm Weltatlas. G. Fischer, Jena.

Examples

# \donttest{
climatogram_period("9434", start = 2015, end = 2020, labels = "en")
#> Data download may take a few minutes ... please wait 

# }