title: how to create a polygon and get it coordinates with spatial data in R
body: <p>I Would like to know if there is a way to set a polygon interactively in a plot  spatial data image and get It's coordinates. I know there is the locator() function, but I would like to set a circles or square and get it coordinates.</p>