R/interactivity.R
plotInteractivePolygons.Rd
Plot interactive polygons on an image and retrieve the polygons coordinates.
plotInteractivePolygons(x, width = "auto", height = "auto", ...)
A `ggplot` or `rast` plot object to draw polygons on
An integer, defining the width/height in pixels.
Graphical parameters passed on to `polygon` or `geom_point`.
A `data.table` containing x,y coordinates from the plotted polygons.