[R-sig-Geo] lattice, xyplot, sp, spplot: is it possible to fix maximum and minimum values in the key ?

Edzer Pebesma edzer.pebesma at uni-muenster.de
Sat Jan 22 22:51:59 CET 2011



On 01/22/2011 11:18 AM, Patrick Giraudoux wrote:
> Hi,
> 
> Does anybody knows if it is possible to fix user defined maximum and
> minimum values in the key of a xyplot (or spplot) graphics ? I have a
> set of seperate drawings and I would like to keep the same color scheme
> between fixed values for all of them (which looks like being not
> possible, autokey normally adapting the range of colors to the
> particular range of values in each plot.

If your object is of class SpatialPointsDataFrame, it may suffice to
pass the argument "cuts" with the vector of cuts. If it is
grid/polygons/lines, use the "at" component of the "colorkey" argument
to specify breaks; see ?levelplot in package lattice.

> 
> Patrick
> 
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo

-- 
Edzer Pebesma
Institute for Geoinformatics (ifgi), University of Münster
Weseler Straße 253, 48151 Münster, Germany. Phone: +49 251
8333081, Fax: +49 251 8339763  http://ifgi.uni-muenster.de
http://www.52north.org/geostatistics      e.pebesma at wwu.de



More information about the R-sig-Geo mailing list