Skip to contents

Scale coordinates of a layout.

Usage

normalize(
  xmin = -1,
  xmax = 1,
  ymin = xmin,
  ymax = xmax,
  zmin = xmin,
  zmax = xmax
)

Arguments

xmin, xmax

Minimum and maximum for x coordinates.

ymin, ymax

Minimum and maximum for y coordinates.

zmin, zmax

Minimum and maximum for z coordinates.

Examples

layout_(make_ring(10), with_fr(), normalize())
#>             [,1]        [,2]
#>  [1,] -0.2892981  1.00000000
#>  [2,]  0.3303621  0.97132133
#>  [3,]  0.8216903  0.57441170
#>  [4,]  1.0000000 -0.03662649
#>  [5,]  0.7955814 -0.64123937
#>  [6,]  0.2828226 -1.00000000
#>  [7,] -0.3350831 -0.97135144
#>  [8,] -0.8252331 -0.57114562
#>  [9,] -1.0000000  0.04385973
#> [10,] -0.7963818  0.64580360