EVOLUTION-MANAGER
Edit File: layout_.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 layouts</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_ {igraph}"><tr><td>layout_ {igraph}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Graph layouts</h2> <h3>Description</h3> <p>This is a generic function to apply a layout function to a graph. </p> <h3>Usage</h3> <pre> layout_(graph, layout, ...) ## S3 method for class 'igraph_layout_spec' print(x, ...) ## S3 method for class 'igraph_layout_modifier' print(x, ...) </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>layout</code></td> <td> <p>The layout specification. It must be a call to a layout specification function.</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>Further modifiers, see a complete list below. For the <code>print</code> methods, it is ignored.</p> </td></tr> <tr valign="top"><td><code>x</code></td> <td> <p>The layout specification</p> </td></tr> </table> <h3>Details</h3> <p>There are two ways to calculate graph layouts in igraph. The first way is to call a layout function (they all have prefix <code>layout_</code> on a graph, to get the vertex coordinates. </p> <p>The second way (new in igraph 0.8.0), has two steps, and it is more flexible. First you call a layout specification function (the one without the <code>layout_</code> prefix, and then <code>layout_</code> (or <code><a href="add_layout_.html">add_layout_</a></code>) to perform the layouting. </p> <p>The second way is preferred, as it is more flexible. It allows operations before and after the layouting. E.g. using the <code>component_wise</code> argument, the layout can be calculated separately for each component, and then merged to get the final results. </p> <h3>Value</h3> <p>The return value of the layout function, usually a two column matrix. For 3D layouts a three column matrix. </p> <h3>Modifiers</h3> <p>Modifiers modify how a layout calculation is performed. Currently implemented modifiers: </p> <ul> <li> <p><code>component_wise</code> calculates the layout separately for each component of the graph, and then merges them. </p> </li> <li> <p><code>normalize</code> scales the layout to a square. </p> </li></ul> <h3>See Also</h3> <p><code><a href="add_layout_.html">add_layout_</a></code> to add the layout to the graph as an attribute. </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_mds.html">layout_with_mds</a>()</code>, <code><a href="layout_with_sugiyama.html">layout_with_sugiyama</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 <- make_ring(10) + make_full_graph(5) coords <- layout_(g, as_star()) plot(g, layout = coords) </pre> <hr /><div style="text-align: center;">[Package <em>igraph</em> version 1.3.5 <a href="00Index.html">Index</a>]</div> </body></html>