Skip to content
Back to formatted view

Raw Message

Message-ID: <543D1B46.4080206@uni-muenster.de>
Date: 2014-10-14T12:47:02Z
From: Edzer Pebesma
Subject: Fix extreme values on legend
In-Reply-To: <CAAMkPW9dHQfWTdZ=m=uFpdz6zSt91AazJwppOtExncJdxhi9og@mail.gmail.com>

You can use the at argument, as in

spplot(obj, at = c(0,1,2,3))

to specify the values at which colours change. Its range determines the
value range.

On 10/14/2014 12:56 PM, Jue Lin-Ye wrote:
> Greetings!
> 
> I have been using spplot to draw maps of the NW Mediterranean and
> sub-regions. I would like to compare them, so I need the same range of
> values to be displayed on the legends. I know that I can manually fix the
> *colors*, but I do not know if I can fix the extreme *values* on spplot (I
> know that I can do so with image.plot, but it is not what I desire).
> 
> Thank you in advance!
> 

-- 
Edzer Pebesma,  Co-Editor-in-Chief Computers & Geosciences
Institute for Geoinformatics (ifgi), University of M?nster
Heisenbergstra?e 2, 48149 M?nster, Germany. Phone: +49 251
83 33081 http://ifgi.uni-muenster.de GPG key ID 0xAC227795

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20141014/d8e105c8/attachment.bin>