[R] 2 images on one plot
petr.pikal at precheza.cz
Mon Mar 12 17:07:52 CET 2012
with image I can plot only one set of values in one plot.
Do somebody have any insight how to put those 2 matrices into one picture
so that in one cell in image picture are both values from mat[1,1] and
image(x, y, mat)
image(x, y, mat2)
The only way I found is to mix x or y for both matrices let say
xm <- sort(c(x,x+.5))
matm <- cbind(mat[,1], mat2[,1], mat[,2], mat2[,2])
which lacks of elegance and is rather complicated when considering matrix
with more rows and columns.
Looking forward to any hint.
More information about the R-help