79163777

Date: 2024-11-06 18:16:40
Score: 1
Natty:
Report link

I found the problem. The thing is that when adding angle, geom_image seems to be adding some blank square around the image. The solution is to remove the background through the argument image_fun :)

geom_image(
    aes(
      image = image, 
      angle = orientation_degree
      ), 
    image_fun = \(img) {
      img %>%
        magick::image_background('none')
    }
  ) 

enter image description here

Reasons:
  • Whitelisted phrase (-1): solution is
  • Probably link only (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: IƱigo Urrestarazu-Porta