Skip to contents

plot leaflet

Usage

plot_leaflet(g, lat, lon, col = "site", label = "none", tile = "Default")

Arguments

g

igraph object

lat

vertex attribute that gives latitude

lon

vertex attribute that gives longitude

col

vertex attribute to give marker colour

label

vertex attribute to give marker label

tile

background tile

Value

leaflet plot

Examples

plot_leaflet(example_network, "lat", "long", col = "site")