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,]  1.0000000  0.1809687
#>  [2,]  0.7104397  0.7313289
#>  [3,]  0.1487960  1.0000000
#>  [4,] -0.4666510  0.8832536
#>  [5,] -0.9025416  0.4339439
#>  [6,] -1.0000000 -0.1858822
#>  [7,] -0.7071462 -0.7340898
#>  [8,] -0.1455567 -1.0000000
#>  [9,]  0.4696901 -0.8897022
#> [10,]  0.9083100 -0.4412655