View source: R/image_locator.R
This function simply gets the width and height values of the points on which you click. The result is a list of two vectors, the first vector is for width, the second for height.
1 | image_locator(x, rectangle = FALSE)
|
x |
a raster object, or an image loaded by
|
rectangle |
if it is FALSE (default), the result list contains the width and height values. If it is TRUE, only the left, right, top, bottom values of the rectangle designated by your clicking are returned. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.