ggplot2 explained in 5 minutes!

Sdílet
Vložit
  • čas přidán 25. 01. 2021
  • Here is a quick lesson about how ggplot2 works from my full course on data visualization for ecologists: coaching.rforecology.com/intr...
    ggplot2 cheatsheet:
    github.com/rstudio/cheatsheet...

Komentáře • 22

  • @Myer5Hertz
    @Myer5Hertz Před 3 lety +6

    After 16 years of youtube, it is finally my turn to be first to watch a video!

  • @chewingum1214
    @chewingum1214 Před 3 lety +5

    Very informative and clean video 👍

  • @jigarpatel2792
    @jigarpatel2792 Před 3 lety +2

    thanks for uploading...its very useful

  • @bridgettsmith7206
    @bridgettsmith7206 Před rokem +2

    Thank you for the video.

  • @Fallinwhite
    @Fallinwhite Před rokem +2

    Thank you -- is there a way to plot the graph with covariates in the regression?

    • @RforEcology
      @RforEcology  Před rokem +1

      Hey there, that's a great question! It would definitely be possible, it just depends on what type of figure you are trying to create from your regression.
      If you were modeling a simple linear regression between two variables, you could plot the response variable against the explanatory variable and add a line of best fit. I have written a blog about that here: www.rforecology.com/post/how-to-do-simple-linear-regression-in-r/
      Otherwise, if you have multiple explanatory variables, it's common practice to predict new values based on changing a single explanatory variable while keeping all others constant. Then you can plot your newly predicted response against the variable you are adjusting to see how its change affects the predicted value when all others are constant. Hope this helps!

  • @fornello123
    @fornello123 Před 2 lety +1

    The cheat sheet link in the video description is broken.

    • @RforEcology
      @RforEcology  Před 2 lety

      Thanks for letting us know, it should work now!

  • @katyhessni
    @katyhessni Před 2 lety +1

    thanks so much

    • @RforEcology
      @RforEcology  Před 2 lety

      My pleasure! I'm glad you enjoyed the video!

  • @farazahmed1668
    @farazahmed1668 Před rokem +1

    it slooking cool buddy.

  • @nept4ne
    @nept4ne Před 3 lety +2

    Hi @R for Ecologists
    The course about data visualization is free?

    • @RforEcology
      @RforEcology  Před 3 lety +2

      Hi Harry, the course will not be free, but there will be scholarships available to ensure that everyone can afford it. This is an important part of our mission--making sure everyone has an opportunity.

    • @nept4ne
      @nept4ne Před 3 lety +2

      @@RforEcology thanks

  • @akilasudesh8373
    @akilasudesh8373 Před 2 lety +1

    Yor second link is not working. And how i update my r studio version to working with ggplot function. Currnently it is not avilable in my library

    • @RforEcology
      @RforEcology  Před 2 lety

      Hi Akila, you can run the following code and that should update your ggplot2 package!
      install.packages("ggplot2")
      Then library(ggplot2) should work for you.

    • @RforEcology
      @RforEcology  Před 2 lety

      And thanks for letting us know about the link. It should be fixed now!