View source: R/interactivity.R
plotInteractivePolygons | R Documentation |
Plot interactive polygons on an image and retrieve the polygons coordinates.
plotInteractivePolygons(x, width = "auto", height = "auto", ...)
x |
A 'ggplot' or 'rast' plot object to draw polygons on |
width, height |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.