affineTransform: Transform data space

Description Usage Arguments Value

View source: R/utils.R

Description

From a 2D histogram of grid size 0.02 / 0.03 (smoothing error < ~7.7e-3 / 1.15e-2)

Usage

1
affineTransform(x, y, theta, right = 0, up = 0)

Arguments

x

original x coordinate

y

original y coordinate

theta

rotation angle, clockwise, in radius

right

offset rightward

up

offset upward

Value

A list: (xt, yt), transformed x and y coordinates.


rudazhang/plmr documentation built on Aug. 30, 2021, 5:43 p.m.