image_locator: Get the Width and Height of the Mouse Clicked Points

Description Usage Arguments

View source: R/image_locator.R

Description

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.

Usage

1
image_locator(x, rectangle = FALSE)

Arguments

x

a raster object, or an image loaded by magick::image_read or the filename of that image.

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.


plothelper documentation built on July 2, 2020, 4:03 a.m.