EVOLUTION-MANAGER
Edit File: layout_on_grid.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: Simple grid layout</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_on_grid {igraph}"><tr><td>layout_on_grid {igraph}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Simple grid layout</h2> <h3>Description</h3> <p>This layout places vertices on a rectangular grid, in two or three dimensions. </p> <h3>Usage</h3> <pre> layout_on_grid(graph, width = 0, height = 0, dim = 2) on_grid(...) layout.grid.3d(graph, width = 0, height = 0) </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>width</code></td> <td> <p>The number of vertices in a single row of the grid. If this is zero or negative, then for 2d layouts the width of the grid will be the square root of the number of vertices in the graph, rounded up to the next integer. Similarly, it will be the cube root for 3d layouts.</p> </td></tr> <tr valign="top"><td><code>height</code></td> <td> <p>The number of vertices in a single column of the grid, for three dimensional layouts. If this is zero or negative, then it is determinted automatically.</p> </td></tr> <tr valign="top"><td><code>dim</code></td> <td> <p>Two or three. Whether to make 2d or a 3d layout.</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>Passed to <code>layout_on_grid</code>.</p> </td></tr> </table> <h3>Details</h3> <p>The function places the vertices on a simple rectangular grid, one after the other. If you want to change the order of the vertices, then see the <code><a href="permute.html">permute</a></code> function. </p> <h3>Value</h3> <p>A two-column or three-column matrix. </p> <h3>Author(s)</h3> <p>Tamas Nepusz <a href="mailto:ntamas@gmail.com">ntamas@gmail.com</a> </p> <h3>See Also</h3> <p><code><a href="layout_.html">layout</a></code> for other layout generators </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_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="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 <- make_lattice( c(3,3) ) layout_on_grid(g) g2 <- make_lattice( c(3,3,3) ) layout_on_grid(g2, dim = 3) ## Not run: plot(g, layout=layout_on_grid) rglplot(g, layout=layout_on_grid(g, dim = 3)) ## End(Not run) </pre> <hr /><div style="text-align: center;">[Package <em>igraph</em> version 1.3.5 <a href="00Index.html">Index</a>]</div> </body></html>