windrose_period: Windrose (speed/direction) diagram of a station over a time...

View source: R/windrose.R

windrose_periodR Documentation

Windrose (speed/direction) diagram of a station over a time period

Description

Plot a windrose showing the wind speed and direction for a station over a time period.

Usage

windrose_period(
  station,
  start = 2000,
  end = 2010,
  n_directions = 8,
  n_speeds = 5,
  speed_cuts = NA,
  col_pal = "GnBu",
  calm_wind = 0,
  legend_title = "Wind Speed (m/s)",
  verbose = FALSE
)

Arguments

station

Character string with station identifier code(s) (see aemet_stations()) or "all" for all the stations.

start

Numeric value as start year (format: YYYY).

end

Numeric value as end year (format: YYYY).

n_directions

Numeric value as the number of direction bins to plot (petals on the rose). The number of directions defaults to 8.

n_speeds

Numeric value as the number of equally spaced wind speed bins to plot. This is used if speed_cuts is NA (default 5).

speed_cuts

Numeric vector containing the cut points for the wind speed intervals, or NA (default).

col_pal

Character string indicating the name of the hcl.pals() color palette to be used for plotting.

calm_wind

Numeric value as the upper limit for wind speed that is considered calm (default 0).

legend_title

Character string to be used for the legend title.

verbose

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

Value

A ggplot2 object

API Key

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

See Also

aemet_daily_period()

Other aemet_plots: climatestripes_station(), climatogram_normal(), climatogram_period(), ggclimat_walter_lieth(), ggstripes(), ggwindrose(), windrose_days()

Other wind: climaemet_9434_wind, ggwindrose(), windrose_days()

Examples



windrose_period("9434",
  start = 2000, end = 2010,
  speed_cuts = 4
)



climaemet documentation built on Aug. 30, 2023, 9:06 a.m.