R/rawsList_addWindBarbs.R
rawsList_addWindBarbs.Rd
Add a multi-sided polygon to a plot.
rawsList_addWindBarbs(
rawsList = NULL,
observationTime = NULL,
skipMissing = FALSE,
type = "winds",
circleSize = 1,
circleFill = "transparent",
lineCol = 1,
extraBarbLength = 0,
barbSize = 1,
...
)
a list of raws_timeseries objects
Time of observation in question. Only accepts POSIXct objects.
Logical flag to skip stations with data missing at the requested time.
Which type of wind to plot. Currently only accepts 'winds' or 'gusts'
size of the circle
circle fill color
line color (currently not supported)
add length to barbs
size of the barb
additional arguments to be passed to lines
https://commons.wikimedia.org/wiki/Wind_speed
if (FALSE) {
# Fail gracefully if any resources are not available
try({
library(maps)
library(RAWSmet)
setRawsDataDir("~/Data/RAWS")
maps::map('state', "washington")
# Noon on 09-01-2017
observationTime <- MazamaCoreUtils::parseDatetime(2017090112, timezone = "America/Los_Angeles")
rawsList_addWindBarbs(rawsList = example_cefaList, observationTime = observationTime)
}, silent = FALSE)
}