This function creates a leaflet map of the network, and highlights nodes of interest specified by the user.
map_g(g, nodes = NULL)
g | The network to be mapped. |
---|---|
nodes | The nodes to be highlighted (in red vs. the default blue). |
f = system.file("sample_data/network", "g100.RDS", package = "SEEDNet") g = readRDS(f) map = map_g(g)