R/a_get_native.R

Defines functions a_get_native

a_get_native <-
function(x, y){
coords <-par('usr')
dinps  <-par('pin')
xtox   <- dinps[1]/dinps[2]
xr <- abs(diff(coords[1:2]))
yr <- abs(diff(coords[3:4]))
x  <- x/xtox
x <- ((x*xr)+coords[1])
y <- ((y*yr)+coords[3])
cbind(x, y)
}

Try the pBrackets package in your browser

Any scripts or data that you put into this service are public.

pBrackets documentation built on May 18, 2021, 5:16 p.m.