RotatedMarker.layer | R Documentation |
Add a leaflet layer containing rotated arrows:
RotatedMarker.layer(map, data, unit, grouplayer, bins, plot.angle = T)
map |
leaflet map as base layer |
data |
dataframe containg the folowing columns: 1) value [numeric] 2) angle in degrees (N = 0, clockwise) [numeric] 3) name of the location [character] 4) lat of the location [numeric] 5) lon of the location [numeric] |
unit |
of the value's plotted on the map |
bins |
bins for the colormap used |
plot.angle |
(default TRUE) of plotting direction of the value |
grouplater |
as layer option for showing/hiding the map layer |
leaflet map object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.