| Network | R Documentation | 
NetworkCreates objects of calss Network
Network(x, data)
| x | The graph with named nodes, an object of class  | 
| data | Data set, with named columns | 
An object containing the graph and the data whose columns are associated to the nodes.
g<- graph(c(1,2,2,3), directed=FALSE)
g<- set.vertex.attribute(g, "name", V(g), c("a", "b" ,"c")) # name the nodes
data<- matrix(rnorm(10*3), 10,3)
colnames(data)<- c("a", "b", "c")  # name the columns
net<- Network(x = g, data = data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.