click | R Documentation |
click
display an image in a new or existing display
window and waits for a mouse click on the display window to be detected.
click(image, scale = 1, window_name = "Display")
image |
An |
scale |
The scaling of the display relative to the image size (default: 1). |
window_name |
A character string representing the name of the display window (default: "Display"). |
A data frame with the following 3 columns:
the x coordinate of the mouse click.
the y coordinate of the mouse click.
the mouse button that was pressed (0: left button; 1: right button.)
Simon Garnier, garnier@njit.edu
Image
, newDisplay
, display
## Not run:
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
click(balloon)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.