Description Usage Arguments Examples
This is a wrapping function to create interactive
network on a map from an igraph object.
| 1 | 
| x | an  | 
| v.size | a numeric vector indicating vertices size. | 
| v.col | a vector of R colors to use for the vertices. | 
| bm | a character string giving the base map tiles server adress.
Use  | 
| ... | additional arguments which can be passed to  | 
| 1 2 3 4 5 6 7 8 9 | ## Not run: 
require(igraph)
pump.adj <- as.matrix(dist(coordinates(cholera$pumps)))
pump.graph <- graph.adjacency(pump.adj < 0.003, diag = FALSE)
V(pump.graph)$lat <- coordinates(cholera$pumps)[, 2]
V(pump.graph)$lon <- coordinates(cholera$pumps)[, 1]
netMap(pump.graph, v.size = 5, width = 500, height = 300)
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.