I am trying to add an image (jpeg, png doesn't matter) to the plot, which is determined by the layout function. For instance:
a<-c(1,2,3,4,5) b<-c(2,4,8,16,32) m <- matrix(c(1,1,1,1,2,3,2,3), nrow = 2, ncol = 4) layout(m); hist(a);boxplot(a~b);plot(b~a)*
Instead of the histogram in position 1, I want to add an image (in my case it is a map)
I donβt know how to deal with jpeg package, maybe you can help me!
source share