How can I create raster plots with the same colour scale in R

后端 未结 6 915
盖世英雄少女心
盖世英雄少女心 2021-01-31 10:36

I\'m creating some maps from raster files using the \"raster\" package in R. I\'d like to create comparison rasters, showing several maps side by side. It\'s important for this

6条回答
  •  甜味超标
    2021-01-31 10:53

    Easy solution now is to use the zlim option.

    plot( d, col=rev( rainbow( 99, start=0,end=1 ) ),zlim=c(0,1) )
    

提交回复
热议问题