Learn R Programming

OPI (version 3.0.4)

degTopix: Convert degrees to pixels for machine 'machine'

Description

Convert degrees to pixels for machine 'machine'

Usage

degTopix(xy, machine = "compass")

Value

xy converted to pixels (top-left is (0,0)) for the machine or NA if machine is unknown

Arguments

xy

a 2 element vector c(x,y) where x and y are in pixels

machine

"compass" or ...?

Examples

Run this code
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