How to add multiple pictures to ggplot in R with image_read and patchwork
ฝัง
- เผยแพร่เมื่อ 23 ก.ค. 2024
- I quick tutorial about how to read images into R based on an url and how to add them to ggplot.
I also show you how to combine multiple plots into one final chart.
⏱ Time Stamps ⌚
0:00 - Intro and GitHub link
1:08 - Loading and manipulating the data
2:07 - Creating the basic donut chart with geom_rect()
4:09 - Reading images from url with read_image()
5:30 - For loop and assign() creates multiple plots
6:50 - Combining multiple plots with patchwork
The chart was created for the 2022 edition of the #30DayChartChallenge
/ 30daychartchall
/ digestdata
You can find the R-code here:
github.com/TheDataDigest/30_D...
Nice work, @The Data Digest!
Thank you for the comment. It was my first try on automatically loading images from url and them putting them together with patchwork. I learned quite a bit for the 30 day chart challenge in April. And it was fun to look at animals :)
Thanks for sharing!