Plots warming stripes for a weather station over a specified period.
Usage
climatestripes_station(
station,
start = 1950,
end = 2020,
with_labels = "yes",
verbose = FALSE,
...
)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.- with_labels
A character string indicating whether to display plot labels, either
"yes"or"no".- verbose
A logical value. If
TRUE, displays information about the exchange between the client and server.- ...
Arguments passed on to
ggstripesn_tempThe number of colors in the palette. Defaults to
11.col_palA character string specifying the
hcl.pals()color palette to be used for plotting.
Value
A ggplot2 object. See help("ggplot2").
Note
Professor Ed Hawkins of the University of Reading developed the "warming stripes" concept to communicate climate change risks as simply as possible. For more details, see ShowYourStripes.
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.
See also
Warming stripes:
ggstripes()
