I'm using R to plot some points on a Map using the Maps
Library. Here is a sample code of what it may look like.
map(database='world', fill=TRUE, border=0, bg='gray', col='white')
p <- points(43.951, -79.43155, col=2, pch=20,cex=20)
Basically, I'm plotting a Longitude and Latitude point on a Map. Then, I'm exporting this Image onto a PNG file. I want to figure out how to retrieve where the Point is on X and Y coordinate of the Image. Thank you.
Edit: I'm actually using a Jpeg file and this is the code that outputs to the image file.
jpeg(path.jpg, width=5000, height=5000)
mapping and plotting functions
dev.off()