degTopix {OPI} | R Documentation |
Convert degrees to pixels for machine 'machine'
Description
Convert degrees to pixels for machine 'machine'
Usage
degTopix(xy, machine = "compass")
Arguments
xy |
a 2 element vector c(x,y) where x and y are in pixels |
machine |
"compass" or ...? |
Value
xy converted to pixels (top-left is (0,0)) for the machine or
NA
if machine is unknown
Examples
degTopix(c(0, 0), machine="compass") # c(960, 960) pixels
degTopix(c(-15, 2)) # c(495, 898) pixels
[Package OPI version 3.0.2 Index]