Skip to content

Instantly share code, notes, and snippets.

@bobthecat
Created June 4, 2012 04:40
Show Gist options
  • Save bobthecat/2866386 to your computer and use it in GitHub Desktop.
Save bobthecat/2866386 to your computer and use it in GitHub Desktop.
ppiNetwork
library("igraph")
gg <- graph.data.frame(ppi)
plot(gg,
layout = layout.fruchterman.reingold,
vertex.label = V(gg)$name,
vertex.label.color= "black",
edge.arrow.size=0,
edge.curved=FALSE
)
## interactive display using tk
tkplot(gg,
layout = layout.fruchterman.reingold,
vertex.label = V(gg)$name,
vertex.label.color= "black",
edge.arrow.size=0,
edge.curved=FALSE
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment