Hi Paul, On Thu, Oct 4, 2012 at 9:35 AM, Paul Smith <[email protected]> wrote: [...] > The first thing I know I need is to retrieve the two column matrix generated > by the fruchterman reingold algorithm. If I’m putting my data through the > fruchterman reingold layout formatting how do I retrieve this list without > having to plot the data?
Here is my example again: g <- graph.ring(10) E(g)$weight <- c(1,2) coords <- layout.fruchterman.reingold(g, weights=E(g)$weight) The coordinates are in 'coords'. layout.fruchterman.reingold() does _not_ plot the data, it just calculates the coordinates. The plot() function does the plotting. If you don't want to plot your graph, don't call the plot() function. Best, Gabor > > > Next, how can I attach descriptive values to each of the points making up > the vertices so I can follow them with other data? > > > > Thanks, > > > > Paul T. Smith Jr. > > > > Research Associate > > Flatley Discovery Lab > > Suite 208 > > The Schrafft Center > > 529 Main St. > > Charlestown, MA 02129 > > > > > _______________________________________________ > igraph-help mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/igraph-help > -- Gabor Csardi <[email protected]> MTA KFKI RMKI _______________________________________________ igraph-help mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/igraph-help
