[R-sig-Geo] using the same legend for different scenarios in sf plots

Edzer Pebesma edzer@pebe@m@ @end|ng |rom un|-muen@ter@de
Wed Feb 19 15:10:12 CET 2020


With the breaks argument you can specify the numbers at which colors break.

On 2/19/20 3:05 PM, Paulo Flores Ribeiro wrote:
> Hello,
> I want to compare the spatial distribution of a variable in 7 different 
> scenarios by running the same plot code successively 7 times (within sf 
> package), each time changing the values of the variable for each 
> scenario. In each run, I copy-paste the map into a word document. In the 
> end, I want to visually compare the 7 maps, but for that I need the 
> scale range of the legend values to be the same on the seven maps 
> (including the colour ramp).
> How to force the scale interval (and the corresponding colour ramp) to 
> be the same on the seven maps, within the sf package?
> Thanks,
> PauloFR
> 
> 
> 	[[alternative HTML version deleted]]
> 
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
> 

-- 
Edzer Pebesma
Institute for Geoinformatics
Heisenbergstrasse 2, 48149 Muenster, Germany
Phone: +49 251 8333081

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pEpkey.asc
Type: application/pgp-keys
Size: 3110 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20200219/7b2afe2a/attachment.bin>


More information about the R-sig-Geo mailing list