powered by
Convert degrees to pixels for machine 'machine'
degToPix(xy, machine = "compass")
a 2 element vector c(x,y) where x and y are in degrees on a visual field with the usual conventions
"compass" or ...?
xy converted to pixels (top-left is (0,0)) for the machine or NA if machine is unknown
NA
# NOT RUN { degToPix(c(0, 0), machine="compass") # c(960, 960) pixels degToPix(c(-15, 2)) # c(495, 898) pixels # }
Run the code above in your browser using DataLab