G=getGOGraph(c("GO:0006955","GO:0007584"))
if(require(igraph)){
g=igraph.from.graphNEL(G)
plot(g, vertex.label=V(g)$name)
Gs = getGOGraphsGenes(c("207","7494"))
g = igraph.from.graphNEL(Gs[[1]])
plot(g, vertex.label=V(g)$name) # plot the first of both GO graphs
}
Run the code above in your browser using DataLab