layout.grid: Simple grid layout

View source: R/layout.R

layout.gridR Documentation

Simple grid layout

Description

[Deprecated]

layout.grid() was renamed to layout_on_grid() to create a more consistent API.

Usage

layout.grid(graph, width = 0, height = 0, dim = 2)

Arguments

graph

The input graph.

width

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.

height

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.

dim

Two or three. Whether to make 2d or a 3d layout.


igraph documentation built on Oct. 20, 2024, 1:06 a.m.