RotatedMarker.layer: Add a leaflet layer containing rotated arrows:

View source: R/leafletMap.R

RotatedMarker.layerR Documentation

Add a leaflet layer containing rotated arrows:

Description

Add a leaflet layer containing rotated arrows:

Usage

RotatedMarker.layer(map, data, unit, grouplayer, bins, plot.angle = T)

Arguments

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

Value

leaflet map object.


EMMeijers/Waternet documentation built on Nov. 19, 2022, 1:36 p.m.