I’m using RStudio and the RPGR package to elaborate some data. I need to obtain the coordiates of a mouse click on a plot. It works using the locator() function but i need a bigger version of my plot so i need to use a graphic device. I tried with window() and X11(), i manage to plot the data and my cursor becomes a cross, meaning it reads the locator function, but it does not record my clicks. Am I doing something wrong?
Iread that there are some problems with locator() and RStudio, could it be the cause?
Leave an answer