nr_rotate: Rotate a native raster image by 90,180,270 degrees

View source: R/nr-core.R

nr_rotateR Documentation

Rotate a native raster image by 90,180,270 degrees

Description

Rotate a native raster image by 90,180,270 degrees

Usage

nr_rotate(nr, angle)

Arguments

nr

native raster image

angle

one of 0,90,180,270

Value

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

See Also

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

Examples

nr <- nr_new(20, 10, 'hotpink')
dim(nr)
nr_rotate(nr, 90)
dim(nr)

nara documentation built on May 28, 2026, 5:07 p.m.