squarifyLayout: Make a network layout more square-shaped

View source: R/graphlayout.R

squarifyLayoutR Documentation

Make a network layout more square-shaped

Description

This transforms a circle-shaped network layout more into a square-shaped network layout. It does so by moving nodes in the corners more towards the corner.

Usage

squarifyLayout(x, rate = 1)

Arguments

x

A network layout matrix with 2 columns representing node x and y axis positions.

rate

The rate by which to move nodes into the corners, between 0 and 1.

Value

A network layout matrix with 2 columns representing node x and y axis positions.


Spiritspeak/skMisc documentation built on April 12, 2025, 5:40 a.m.