R/nr-core.R
nr_rotate.Rd
Rotate a native raster image by 90,180,270 degrees
nr_rotate(nr, angle)
native raster image
one of 0,90,180,270
Invisibly return the supplied native raster image which was been modified in-place
Other transformation functions: nr_fliph(), nr_flipv(), nr_transpose()
nr_fliph()
nr_flipv()
nr_transpose()
nr <- nr_new(20, 10, 'hotpink') dim(nr) #> [1] 10 20 nr_rotate(nr, 90) dim(nr) #> [1] 20 10