Plot a windrose showing the wind speed and direction for a station over a days period.
windrose_days(
station,
start = "2000-12-01",
end = "2000-12-31",
n_directions = 8,
n_speeds = 5,
speed_cuts = NA,
col_pal = "GnBu",
calm_wind = 0,
legend_title = "Wind Speed (m/s)",
verbose = FALSE
)
Character string with station identifier code(s)
(see aemet_stations()
) or "all" for all the stations.
Character string as start date (format: YYYY-MM-DD).
Character string as end date (format: YYYY-MM-DD).
Numeric value as the number of direction bins to plot (petals on the rose). The number of directions defaults to 8.
Numeric value as the number of equally spaced wind speed
bins to plot. This is used if speed_cuts
is NA
(default 5).
Numeric vector containing the cut points for the wind
speed intervals, or NA
(default).
Character string indicating the name of the
hcl.pals()
color palette to be used for plotting.
Numeric value as the upper limit for wind speed that is considered calm (default 0).
Character string to be used for the legend title.
Logical TRUE/FALSE
. Provides information about the flow of
information between the client and server.
A ggplot2
object
You need to set your API Key globally using aemet_api_key()
.
Other aemet_plots:
climatestripes_station()
,
climatogram_normal()
,
climatogram_period()
,
ggclimat_walter_lieth()
,
ggstripes()
,
ggwindrose()
,
windrose_period()
Other wind:
climaemet_9434_wind
,
ggwindrose()
,
windrose_period()
# NOT RUN {
windrose_days("9434",
start = "2000-12-01",
end = "2000-12-31",
speed_cuts = 4
)
# }
Run the code above in your browser using DataLab