R/0_util.r
map_absolute.Rd
A manual variant of map_relative()
. Can be used as the axes
argument
to manually set the size and locations of the axes.
Numeric data object with 2 columns to scale and offset. Defaults to NULL, passing arguments to scale_axes for use internally.
2 Numeric values to offset/pan the first 2 dimensions of x
.
2 Numeric values to scale/zoom to the first 2 dimensions of x
.
Scaled and offset x
.
scale_axes
for preset choices.
Other linear mapping functions:
map_relative()
bas <- tourr::basis_random(4, 2)
map_absolute(bas, offset = c(-2, 0), scale = c(2/3, 2/3))
#> [,1] [,2]
#> [1,] 1.004661 0.6666667
#> [2,] 1.441469 0.6666667
#> [3,] 1.714817 0.6666667
#> [4,] 2.145457 0.6666667