Transpose

nr_transpose(nr)

Arguments

nr

native raster image

Value

Invisibly return the supplied native raster image which was been modified in-place

See also

Other transformation functions: nr_fliph(), nr_flipv(), nr_rotate()

Examples

nr <- nr_new(20, 10, 'hotpink')
dim(nr)
#> [1] 10 20
nr_transpose(nr)
dim(nr)
#> [1] 20 10