In R (Win64), I\'m trying to plot a combination of raster images and histograms in a single plot window using the layout() command with a matrix defining the layout. Here\'s
There may be an issue between S4 methods and layout() here. As a workaround, it seems to work to replace plot() with image(). Instead of plot(rast1, axes=F, ann=F, legend=F, box=F, useRaster=T), use image(rast1, axes=F, ann=F, asp=1) to get square image maps.