R - plotting multiple rasters using matrix layout

后端 未结 1 439
北恋
北恋 2020-12-19 08:17

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

相关标签:
1条回答
  • 2020-12-19 08:37

    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.

    0 讨论(0)
提交回复
热议问题