I have an image. How can I find the coordinate of four corners of the quadrilateral. Is there a way I can click at the corners of the quadrilateral to extract their coordinates.
I have a code below with predefined x and y limits.
library(ggplot2) # to plot
library(png) # to read image
library(ggpubr) # background image
imag = readPNG("del.png")
ggplot() +
xlim(0, 10) +
ylim(30, 45) +
background_image(imag) +
coord_equal()