EVOLUTION-MANAGER
Edit File: layout_with_mds.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Graph layout by multidimensional scaling</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for layout_with_mds {igraph}"><tr><td>layout_with_mds {igraph}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Graph layout by multidimensional scaling</h2> <h3>Description</h3> <p>Multidimensional scaling of some distance matrix defined on the vertices of a graph. </p> <h3>Usage</h3> <pre> layout_with_mds(graph, dist = NULL, dim = 2, options = arpack_defaults) with_mds(...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>graph</code></td> <td> <p>The input graph.</p> </td></tr> <tr valign="top"><td><code>dist</code></td> <td> <p>The distance matrix for the multidimensional scaling. If <code>NULL</code> (the default), then the unweighted shortest path matrix is used.</p> </td></tr> <tr valign="top"><td><code>dim</code></td> <td> <p><code>layout_with_mds</code> supports dimensions up to the number of nodes minus one, but only if the graph is connected; for unconnected graphs, the only possible values is 2. This is because <code>merge_coords</code> only works in 2D.</p> </td></tr> <tr valign="top"><td><code>options</code></td> <td> <p>This is currently ignored, as ARPACK is not used any more for solving the eigenproblem</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>Passed to <code>layout_with_mds</code>.</p> </td></tr> </table> <h3>Details</h3> <p><code>layout_with_mds</code> uses metric multidimensional scaling for generating the coordinates. Multidimensional scaling aims to place points from a higher dimensional space in a (typically) 2 dimensional plane, so that the distance between the points are kept as much as this is possible. </p> <p>By default igraph uses the shortest path matrix as the distances between the nodes, but the user can override this via the <code>dist</code> argument. </p> <p>This function generates the layout separately for each graph component and then merges them via <code><a href="merge_coords.html">merge_coords</a></code>. </p> <h3>Value</h3> <p>A numeric matrix with <code>dim</code> columns. </p> <h3>Author(s)</h3> <p>Tamas Nepusz <a href="mailto:ntamas@gmail.com">ntamas@gmail.com</a> and Gabor Csardi <a href="mailto:csardi.gabor@gmail.com">csardi.gabor@gmail.com</a> </p> <h3>References</h3> <p>Cox, T. F. and Cox, M. A. A. (2001) <em>Multidimensional Scaling</em>. Second edition. Chapman and Hall. </p> <h3>See Also</h3> <p><code><a href="layout_.html">layout</a></code>, <code><a href="plot.igraph.html">plot.igraph</a></code> </p> <p>Other graph layouts: <code><a href="add_layout_.html">add_layout_</a>()</code>, <code><a href="component_wise.html">component_wise</a>()</code>, <code><a href="layout_as_bipartite.html">layout_as_bipartite</a>()</code>, <code><a href="layout_as_star.html">layout_as_star</a>()</code>, <code><a href="layout_as_tree.html">layout_as_tree</a>()</code>, <code><a href="layout_in_circle.html">layout_in_circle</a>()</code>, <code><a href="layout_nicely.html">layout_nicely</a>()</code>, <code><a href="layout_on_grid.html">layout_on_grid</a>()</code>, <code><a href="layout_on_sphere.html">layout_on_sphere</a>()</code>, <code><a href="layout_randomly.html">layout_randomly</a>()</code>, <code><a href="layout_with_dh.html">layout_with_dh</a>()</code>, <code><a href="layout_with_fr.html">layout_with_fr</a>()</code>, <code><a href="layout_with_gem.html">layout_with_gem</a>()</code>, <code><a href="layout_with_graphopt.html">layout_with_graphopt</a>()</code>, <code><a href="layout_with_kk.html">layout_with_kk</a>()</code>, <code><a href="layout_with_lgl.html">layout_with_lgl</a>()</code>, <code><a href="layout_with_sugiyama.html">layout_with_sugiyama</a>()</code>, <code><a href="layout_.html">layout_</a>()</code>, <code><a href="merge_coords.html">merge_coords</a>()</code>, <code><a href="norm_coords.html">norm_coords</a>()</code>, <code><a href="normalize.html">normalize</a>()</code> </p> <h3>Examples</h3> <pre> g <- sample_gnp(100, 2/100) l <- layout_with_mds(g) plot(g, layout=l, vertex.label=NA, vertex.size=3) </pre> <hr /><div style="text-align: center;">[Package <em>igraph</em> version 1.3.5 <a href="00Index.html">Index</a>]</div> </body></html>