Hi,

I am using the packages "graph" and "Rgraphviz". I am using them to display a
 set of graphs which all have the same nodes, but different edges. To aid in the
 visual comparison, it would be useful to use the same node layout for all of
 the graphs. It would be fine to use the node layout from the first graph. It is
 unclear (to me) how to do this using the layout engine used in Rgraphviz.

A concrete example:

library("graph");
library("Rgraphviz");
set.seed(123);
V = letters[1:7];
M = c(1:3);
g1 = randomGraph(V,M,.5);
g2 = randomGraph(V,M,.5);
par(mfrow=c(1,2));
plot(g1);
plot(g2);
#  The question: How do I now display both g1 and g2 (as seperate plots),
#    but with the nodes in the same place? I would be content with the node
#    locations taken from the layout for g1.

Thanks,

Hugh Rand
rand@amgen.com

	[[alternative HTML version deleted]]

