Add a multi-sided polygon to a plot.
addWindBarbs2(
x,
y,
speed,
dir,
extraBarbLength = 0,
barbSize = 1,
barbColor = "blue",
barbLocation = "zero",
...
)
vector of x-axis positions
vector of y-axis positions
vector of wind speeds in knots
wind directions in degrees clockwise from north
add length to barbs
size of the barb s
color of the barbs
starting location for barbs. Currently accepts 'point' or 'zero'
additional arguments to be passed to arrows
https://commons.wikimedia.org/wiki/Wind_speed
# \donttest{
library(RAWSmet)
data <-
example_cefa_Saddle_Mountain %>%
raws_filterDate("2017-09-01", "2017-10-01") %>%
raws_getData()
plot(data$datetime, data$windSpeed)
addWindBarbs2(data$datetime, data$windSpeed, data$windSpeed, data$windDirection)
#> NULL
# }