This function calls graphics::locator
on a previously plotted
rgb plane to select two points with the mouse. Then it plots the line
joining them and returns an object of class "pixel_rule_object"
.
These objects are passed as parameters to pixel_rule()
to create
"pixel_rule"
objects.
True horizontal and vertical lines are difficult to create by hand. In
these cases, specifying "vertical"
or "horizontal"
(partial
match allowed, i.e. "h"
) will copy the appropriate coordinate value
from the first point to the second to make them the same. Note that this is
done after locator()
returns, so the plot will show the line joining
the original points, not the corrected ones. Use plot_rule()
to see
the corrected line.