How to add multiple pictures to ggplot in R with image_read and patchwork

How to add multiple pictures to ggplot in R with image_read and patchwork

1.845 Lượt nghe
How to add multiple pictures to ggplot in R with image_read and patchwork
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 https://twitter.com/30DayChartChall https://twitter.com/DigestData You can find the R-code here: https://github.com/TheDataDigest/30_Day_Chart_Challenge_2022/tree/main/01_part_to_whole_MAMMALS