I defined a layout to plot three different plots as:
layout(matrix(c(1,2,3,4),2,2,byrow = TRUE), TRUE)
After that I call the three plots that I want to produce:
image.plot(...)
plot(...)
plot(...)
I will also need to overlay a map (generated with getMap
form the rworldmap
package ) to the image.plot
(in the fields
package) with another call like:
newmap <- getMap(resolution = "high")
plot(newmap)
But because of the layout structure R is interpreting this as the next plot to draw.
Is there a way to overlay the map in the same position of image.plot
plot and then continue with the other plots?
Thanks