Identify Points in R Scatterplot: Stupid R Tricks!

Поделиться
HTML-код
  • Опубликовано: 4 фев 2022
  • Here I show you how to identify points in a scatterplot with the identify() command. This seems to only work correctly in R Console (not in RStudio).
    Download the Code: drive.google.com/file/d/1rhm_...
    My Website: www.burkeyacademy.com/
    Support me on Patreon! / burkeyacademy
    Talk to me on my SubReddit: / burkeyacademy
    Buy me a cup of coffee on PayPal? paypal.me/BurkeyAcademy

Комментарии • 12

  • @zahiralagheband3520
    @zahiralagheband3520 2 года назад +1

    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.

    • @BurkeyAcademy
      @BurkeyAcademy  2 года назад

      Interesting... I'll have to try some more computers and browsers. Thanks for the feedback!

    • @zahiralagheband3520
      @zahiralagheband3520 2 года назад

      You're welcome.

  • @nishant16781
    @nishant16781 2 года назад

    Great stuff

  • @BurkeyAcademy
    @BurkeyAcademy  2 года назад +3

    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!

    • @juanpaolosantos3816
      @juanpaolosantos3816 2 года назад

      this reeaally helps thank you very much!!

    • @b.y.3470
      @b.y.3470 11 месяцев назад

      Also, don't forget to close the device at the end.

  • @nannangao7256
    @nannangao7256 Год назад

    I think maybe that was because of Rstudio version or laptop configuration? It works well on my Rstudio. Thanks for teaching.

    • @BurkeyAcademy
      @BurkeyAcademy  Год назад +1

      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.

  • @TM-vg4mx
    @TM-vg4mx Год назад

    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?

  • @khanhle1358
    @khanhle1358 Год назад

    I think you should try with win.graph() command

    • @BurkeyAcademy
      @BurkeyAcademy  Год назад

      I mentioned that in my comment from 10 months ago, and it does help on Windows Computers.