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...
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!
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.
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.
After 16 years of youtube, it is finally my turn to be first to watch a video!
Hahaha that’s awesome
Very informative and clean video 👍
Thanks, Sanchi!
thanks for uploading...its very useful
Glad this is helpful!
Thank you for the video.
You're welcome!
Thank you -- is there a way to plot the graph with covariates in the regression?
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!
The cheat sheet link in the video description is broken.
Thanks for letting us know, it should work now!
thanks so much
My pleasure! I'm glad you enjoyed the video!
it slooking cool buddy.
Thanks 👍
Hi @R for Ecologists
The course about data visualization is free?
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.
@@RforEcology thanks
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
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.
And thanks for letting us know about the link. It should be fixed now!