velocityOptions | R Documentation |
Define further options for the velocity layer.
velocityOptions(
speedUnit = c("m/s", "k/h", "kt"),
minVelocity = 0,
maxVelocity = 10,
velocityScale = 0.005,
colorScale = NULL,
...
)
speedUnit |
Could be 'm/s' for meter per second, 'k/h' for kilometer per hour or 'kt' for knots |
minVelocity |
velocity at which particle intensity is minimum |
maxVelocity |
velocity at which particle intensity is maximum |
velocityScale |
scale for wind velocity |
colorScale |
A vector of hex colors or an RGB matrix |
... |
Further arguments passed to the Velocity layer and Windy.js. For more information, please visit leaflet-velocity plugin |
A list of further options for addVelocity
Other Velocity Functions:
addVelocity()
,
removeVelocity()
,
setOptionsVelocity()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.