How to Combine ggplots | A Step-By-Step Tutorial
HTML-код
- Опубликовано: 21 авг 2024
- The {patchwork} package is an incredibly powerful tool to combine multiple plots into a single image. In this tutorial, I show you some of the amazing tricks that this package can pull off.
MORE VIDEOS
📺 Rebuild this COMPLEX Data Visualization with R • Rebuild this COMPLEX D...
📺 A DEAD-SIMPLE STRATEGY to style your Quarto docs without knowing HTML & CSS • How to style your Quar...
📺 Fast explainer playlist • Explainer videos
SUPPORT THIS CHANNEL
Sponsor a coffee and help me create better videos at www.buymeacoff...
Subscribe at 👉 / @rappa753
MORE CONTENT
- weekly 3-minute newsletter about R, DataViz and webdev at 3mw.albert-rap...
- LinkedIn account at / albert-rapp-9a5b9b28b
#rstats #datavisualization #ggplot2
🥳 If you want to get even better at ggplot and create insightful charts, then you can check out my video course arapp.thinkific.com/courses/insightful-data-visualizations-for-uncreative-r-users
Thanks a million for your value adding contents...
You're welcome. Glad that you enjoy my content 😊
Big help for the tag. Before I usually put a title/subtitle in each plot before combining. Excited to use the tag option. Thanks for this, Albert!
You're welcome. Glad that you found something valuable for your use cases 😊
awesome, Albert💌
Glad that you enjoyed the video 😊
Keep up the good work, I really enjoy your channel ;)
Thank you, will do 😊
Great content bro. Subbed.
Thanks, John ☺
Very helpful video for the layouts and arrangements of R plots! How the rug plots underneath the boxplots were created?
Glad that you like it. As for your question, I just used geom_point() and set the shapes of the point to the string "|". This works but makes the symbols really small so you'll have to crank up that size.
Thank your very much for your kindly reply. This method seems to have appeared in your previous videos and it really have done a great favour to me.@@rappa753
yo, thanks
You're welcome ☺
First!
Good stuff! I’ve found that patchwork objects tend to have a square shape. How can we work around that?
I think when you use + without a layout, then patchwork tries to make things as square-y as possible. But with a layout (in which you also include white spaces) you should be able to make any shapes you want.
Ahhh, that makes sense. I'll give it a shot. Thank you! This would be a good general topic for future videos - how to control the overall shape of graphs in Quarto, R Studio, etc. It would help me, anyway. Also, more about tables. Thanks for what you do.@@rappa753
Thanks but it does not work for me. The challenge is always the version of R. This does not work for all versions of R, so it is important to emphasize on the version of r so that people will not get confused if it does not work for them.
What R version are you using? I'm wondering because Patchwork has been around for a couple of years now so there should be a somewhat good backward compatibility 🤔