Thanks for letting me know. Back when I recorded this, I had tried several different devices with similar results. I just tried again with R 4.1.3 and RStudio 461, and am having similar problems. I also tried it on two different monitors, one was 2K and one was 1080: Both which points couldn't be clicked and the errors between which points were identified versus the ones I actually clicked differed a lot between the two. So, I am thinking it might have to do with the interaction between the video driver and the mouse driver not talking to R correctly in some cases.
Over on Github MORI-Yukito suggested that for a Windows machine, running win.graph() before calling the scatterplot is a workaround. I can confirm that this works! I have been playing around in RStudio.Cloud and it doesn't seem like there is an equivalent function that is allowed there... though there are some equivalent functions for ordinary Linux. If anyone finds a good solution, I'd love to hear about it!
Hello Sir, thanks for the cool stuff. The last line works properly without any problems or warnings for me on both Windows Rstudio and Rstudio Cloud.
Interesting... I'll have to try some more computers and browsers. Thanks for the feedback!
You're welcome.
I think maybe that was because of Rstudio version or laptop configuration? It works well on my Rstudio. Thanks for teaching.
Thanks for letting me know. Back when I recorded this, I had tried several different devices with similar results. I just tried again with R 4.1.3 and RStudio 461, and am having similar problems. I also tried it on two different monitors, one was 2K and one was 1080: Both which points couldn't be clicked and the errors between which points were identified versus the ones I actually clicked differed a lot between the two. So, I am thinking it might have to do with the interaction between the video driver and the mouse driver not talking to R correctly in some cases.
Over on Github MORI-Yukito suggested that for a Windows machine, running win.graph() before calling the scatterplot is a workaround. I can confirm that this works! I have been playing around in RStudio.Cloud and it doesn't seem like there is an equivalent function that is allowed there... though there are some equivalent functions for ordinary Linux. If anyone finds a good solution, I'd love to hear about it!
this reeaally helps thank you very much!!
Also, don't forget to close the device at the end.
Indeed not all Windows computers face this problem, so it is not clear what is the problem. Did anyone find a good solution for this?
Great stuff
I think you should try with win.graph() command
I mentioned that in my comment from 10 months ago, and it does help on Windows Computers.