Draws each vertex as a clustered marker at its coordinates and each edge as a grey line between the vertices it connects.
Arguments
- g
An igraph object.
- lat
Name of the vertex attribute holding latitude.
- lon
Name of the vertex attribute holding longitude.
- col
Name of the vertex attribute used to colour markers, or
"none"to draw every marker in black. Colours are recycled if there are more than 19 groups.- label
Name(s) of the vertex attribute(s) shown in marker labels, each on its own line as
attribute: value, or"none"to label markers with the vertex name.- tile
Background tiles:
"Default"(OpenStreetMap),"Terrain"(Stadia Stamen Terrain), or any other value for Stadia Stamen Terrain Background.
Examples
plot_leaflet(example_network, "lat", "long", col = "site")
plot_leaflet(example_network, "lat", "long", col = "site", label = "site")
plot_leaflet(
example_network, "lat", "long",
col = "site", label = c("name", "site")
)