Re: [R-sig-Geo] Spplot: Specifying individual point symbols

2014-03-10 Thread Oscar Perpiñan
I am using sp 1.0-14 and lattice 0.20.27. Best, Oscar. - Oscar Perpiñán Lamigueiro Dpto. Ingeniería Eléctrica (ETSIDI-UPM) Grupo de Sistemas Fotovoltaicos (IES-UPM) URL: http://oscarperpinan.github.io Twitter: @oscarperpinan

Re: [R-sig-Geo] Spplot: Specifying individual point symbols

2014-03-08 Thread Mark Payne
Hi Oscar, Thanks for the reply. Unfortunately your example doesn't work for me. What version of sp and lattice do you have installed? Package: sp Version: 1.0-14 Date: 2013-10-15 Package: lattice Version: 0.20-15 Date: 2013/03/24 Mark On 7 March 2014 16:25, Oscar Perpiñan

[R-sig-Geo] Spplot: Specifying individual point symbols

2014-03-07 Thread Mark Payne
Hi, I have a problem where I would like to have both the colour and the symbol varying in an spplot plot. Unfortunately, specifying a list of pch values doesn't seem to work. See the following example library(sp) data(meuse) coordinates(meuse) - ~x +y #Lets plot the elevation spplot(meuse,elev)

Re: [R-sig-Geo] Spplot: Specifying individual point symbols

2014-03-07 Thread Oscar Perpiñan
Use groups instead: spplot(meuse[elev], groups=ifelse(meuse$dist 0.3, 1, 2), pch=c(1, 16)) Oscar. - Oscar Perpiñán Lamigueiro Dpto. Ingeniería Eléctrica (ETSIDI-UPM) Grupo de Sistemas Fotovoltaicos (IES-UPM) URL: