I built a code that inputs some data from Excel, does calculations and then places the points on a plot. Then the below command runs to have an image behind the plot. I ran this 100+ times yesterday morning while testing it and it worked great. I ran it last night on a different PC and then this morning on my PC and it no longer outputs the plot with the image behind it. If I run each piece of the below code separately they each work, but combined the plot outputs correctly, but with a gray lined grid instead of the image.
I think it has to do with memory usage, but has anyone had a similar issue?
Draw Image and Plot
ggdraw() +
draw_image("\Scum board.png", width = 1, height = 1 ) +
draw_plot(my_plot)