Description Usage Arguments Value
AOI is a utility function for converting the pixel locations of the x- and y-boundaries of an image to screen proportions. Note that the coordinate (0,0) is the lower-left corner of the screen.
1 2 | AOI(x_pix, y_pix, width = lwl_constants$screen_width,
height = lwl_constants$screen_height)
|
x_pix |
location (in pixels) of the left and right edges of the AOI |
y_pix |
location (in pixels) of the upper and lower edges of the AOI |
width |
width of the screen (in pixels) |
height |
height of the screen (in pixels) |
A list of the form list(x = (left_prop, right_prop), y =
(lower_prop, upper_prop))
, where prop
values describe the locations
of the boundaries in terms of screen proportion.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.