addWindBarbs: Add wind barbs to a map

Description Usage Arguments References Examples

View source: R/addWindBarbs.R

Description

Add a multi-sided polygon to a plot.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
addWindBarbs(
  x,
  y,
  speed,
  dir,
  circleSize = 1,
  circleFill = "transparent",
  lineCol = 1,
  extraBarbLength = 0,
  barbSize = 1,
  ...
)

Arguments

x

vector of longitudes

y

vector of latitudes

speed

vector of wind speeds in knots

dir

wind directions in degrees clockwise from north

circleSize

size of the circle

circleFill

circle fill color

lineCol

line color (currently not supported)

extraBarbLength

add length to barbs

barbSize

size of the barb

...

additional arguments to be passed to lines

References

https://commons.wikimedia.org/wiki/Wind_speed

Examples

1
2
3
4
5
maps::map('state', "washington")
x <- c(-121, -122)
y <- c(47.676057, 47)
addWindBarbs(x, y, speed = c(45,65), dir = c(45, 67),
             circleSize = 1.8, circleFill = c('orange', 'blue'))

PWFSLSmoke documentation built on Nov. 23, 2021, 5:06 p.m.