Plots a Walter-Lieth climate diagram from monthly climatology values for a station over a specified time period.
Usage
climatogram_period(
station = NULL,
start = 1990,
end = 2020,
labels = "en",
verbose = FALSE,
ggplot2 = TRUE,
...
)Arguments
- station
A character vector of station identifiers. See
aemet_stations().- start
A numeric value specifying the start year in
YYYYformat.- end
A numeric value specifying the end year in
YYYYformat.- labels
A character string specifying the language for the x-axis month labels, such as
"en"(English),"es"(Spanish) or"fr"(French).- verbose
A logical value. If
TRUE, displays information about the exchange between the client and server.- ggplot2
A logical value. If
TRUE, the function usesggclimat_walter_lieth(). IfFALSE, it usesclimatol::diagwl().- ...
Further arguments passed to
climatol::diagwl()orggclimat_walter_lieth(), depending on the value ofggplot2.
Note
The implementation is based on climatol.
API key
Queries to the AEMET OpenData API require an API key. Use aemet_api_key()
to set it globally. Query timeout can be controlled with
options(climaemet_timeout = 60) (default value). See
httr2::req_timeout() for details.
References
Walter, H. K., Harnickell, E., Lieth, F. H. H. and Rehder, H. (1967). Klimadiagramm-weltatlas. Jena: Fischer.
Guijarro J. A. (2023). climatol: Climate Tools (Series Homogenization and Derived Products). R package version 4.0.0, https://climatol.eu.
See also
Walter-Lieth climate diagrams:
climatogram_normal(),
ggclimat_walter_lieth()

