degTopix | R Documentation |
Convert degrees to pixels for machine 'machine'
degTopix(xy, machine = "compass")
xy |
a 2 element vector c(x,y) where x and y are in pixels |
machine |
"compass" or ...? |
xy converted to pixels (top-left is (0,0)) for the machine or
NA
if machine is unknown
degTopix(c(0, 0), machine="compass") # c(960, 960) pixels
degTopix(c(-15, 2)) # c(495, 898) pixels
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.