Mathiu:

The attached use case might help: It is not exactly what you are looking for, but the last map demonstrates use of the spplot function to create a 'display list' that plots vector and raster data layers on a single map. Also some hints on creating a map scale and legend.

http://nceas.ucsb.edu/scicomp/GISSeminar/UseCases/MapProdWithRGraphics/OneMapProdWithRGraphics.html

Regards,
Rick Reeves

Mathieu Basille wrote:
Hello everyone,

I'm not very familiar with visualization of spatial objects in R, especially with the possibilities of the spplot function...

I have a SpatialPolygonsDataFrame and I'd like to obtain a map with a specific scale for each layer (not in the geographic space, but in the data), instead of the same one for every one. In my case, the layers represent different variables, not on the same scale (e.g. elevation and rain).

Additionally, I'd like to represent NA's with a particular color (say black so that we can see immediately where they occur).

I guess these 2 issues are somehow related, but I didn't manage to solve them. The help pages of spplot or xyplot didn't really help...

Any hint how to do that?
Thanks in advance,
Mathieu.


 > version
platform       i486-pc-linux-gnu
svn rev        43537
version.string R version 2.6.1 (2007-11-26)
sp: sp_0.9-19


begin:vcard
fn:Rick  Reeves
n:Reeves;Rick 
org:UC Santa Barbara;National Center For Ecological Analysis and Synthesis
adr:Suite 300;;735 State Street;Santa Barbara;CA;93101;USA
email;internet:[EMAIL PROTECTED]
title:Rick Reeves,  Scientific Programmer/Analyst
tel;work:805 892 2533
url:http://www.nceas.ucsb.edu
version:2.1
end:vcard

_______________________________________________
R-sig-Geo mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to